Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detailed Exit Codes #383

Open
1 task done
sheneska opened this issue Jun 4, 2024 · 0 comments
Open
1 task done

Detailed Exit Codes #383

sheneska opened this issue Jun 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sheneska
Copy link

sheneska commented Jun 4, 2024

Terraform CLI and terraform-plugin-docs Versions

github.com/hashicorp/terraform-plugin-docs v0.19.3

Use Cases or Problem Statement

Currently, when the tfplugindocs commands are executed there are no exit codes to explicitly indicate whether the command run was successful or not. While this may be fine for the tfplugindocs migrate and validate commands, I believe having a detailed exit code that indicates what exactly happened would be a good way to assess changes, as opposed to having to look at each .md file manually. These codes will indicate to the contributor to be easily aware of the status of their changes as it relates to the tool.

Proposal

Some detailed exit codes:
-detailed-exitcode Return detailed exit codes when the command exits.

                         This will change the meaning of exit codes to:

                         0 - Succeeded, diff is empty (no changes)

                         1 - Errored

                         2 - Succeeded, there is a diff

How much impact is this issue causing?

Low

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@sheneska sheneska added the enhancement New feature or request label Jun 4, 2024
@sheneska sheneska changed the title Exit Code Detailed Exit Codes Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant