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 codes on failure #21

Open
agustik opened this issue Nov 27, 2022 · 3 comments
Open

Exit codes on failure #21

agustik opened this issue Nov 27, 2022 · 3 comments

Comments

@agustik
Copy link

agustik commented Nov 27, 2022

I cannot see if there is an feature to make it fail with a exit code >0.
That would be a good feature so if you use s3-cli in a command that you know if the command failed or not.

@koblas
Copy link
Owner

koblas commented Nov 29, 2022

I agree that would be a good feature.

Note to self, this could probably be done with cli.Exit as seen here -

https://cli.urfave.org/v2/examples/exit-codes/

Note #2 -- might be worth switching everything over to spf13/cobra (https://github.com/spf13/cobra)

@agustik
Copy link
Author

agustik commented Dec 8, 2023

Any updtes?

@koblas
Copy link
Owner

koblas commented Dec 11, 2023

I need to pick this up.

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