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

Exit with error status codes in error scenarios #20

Open
Samstiles opened this issue Jan 24, 2019 · 0 comments
Open

Exit with error status codes in error scenarios #20

Samstiles opened this issue Jan 24, 2019 · 0 comments

Comments

@Samstiles
Copy link

Samstiles commented Jan 24, 2019

I'd like to find the time one weekend to PR this myself, but adding it to GH issues for reference sake:

In an error scenario, the hogan CLI should exit with a non-zero status code to denote the error for consumers of the CLI.

For example if I am using hogan to generate configs as a part of my jenkins pipeline, I do not have an easy way to know whether or not the hogan config generation attempt failed or succeeded in my scripting.

Two scenarios I know of right now:

  • invalid hogan config dir specified
  • no matching environment in the configs dir... I do think this should produce an error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant