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

recommended way to 'fail' a command #290

Closed
whyrusleeping opened this issue Oct 27, 2015 · 3 comments
Closed

recommended way to 'fail' a command #290

whyrusleeping opened this issue Oct 27, 2015 · 3 comments

Comments

@whyrusleeping
Copy link

What is the recommended way for a command to fail (and have a non-zero exit code).

I'm currently just using os.Exit(1), but i feel like the Action function could return an error to simplify that work.

@jszwedko
Copy link
Contributor

@whyrusleeping agreed, having the command return an error would be ideal, but because it is an API breaking change, I'm reticent to make it until we cut a 2.0. See #266 for possible implementation.

@whyrusleeping
Copy link
Author

@jszwedko ah, wonderful.

@jszwedko
Copy link
Contributor

jszwedko commented May 3, 2016

Supported by #361 thanks to @meatballhat !

@jszwedko jszwedko closed this as completed May 3, 2016
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