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

Feature request: return code #20

Closed
JoernMueller opened this issue Jul 23, 2019 · 3 comments
Closed

Feature request: return code #20

JoernMueller opened this issue Jul 23, 2019 · 3 comments

Comments

@JoernMueller
Copy link

Currently the program seems to return always 0, which generally indicates success. In the context of running ykush in shell scripts or automation tools it would be a significant improvement if the application would return non-zero status code(s) if the command could not be executed as expected.

@yep1
Copy link
Contributor

yep1 commented Jul 29, 2019

Hi, thanks for the input.
The current commit has incorporated this suggestion. It is returning negative values on error and zero on success.
The error code map will be documented and soon made available in the ykushcmd reference manual at https://www.learn.yepkit.com/reference/ykushcmd-reference-ykush/1/2

@yep1 yep1 closed this as completed Jul 29, 2019
@JoernMueller
Copy link
Author

JoernMueller commented Jul 29, 2019

Thank you very much for your fast response. As far as I can see the value still needs to be returned from main().

@yep1
Copy link
Contributor

yep1 commented Jul 29, 2019

Yes it did. Thanks for bringing it to our attention. Best regards.

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

2 participants