iqlusioninc / abscissa

Application microframework with command-line option parsing, configuration, error handling, logging, and shell interactions
Apache License 2.0
569 stars 39 forks source link

feat: shutdown with exit code #865

Closed simonsan closed 6 months ago

simonsan commented 6 months ago

Just as an idea, which would add a new method to the trait with a default implementation (should be non-breaking this way, I assume?):

Closes https://github.com/iqlusioninc/abscissa/issues/857

My assumption is, that it is not worth it to pull this as a new dependency and people can just use it in their code if they want to: https://docs.rs/exitcode/1.1.2/exitcode/