exit-with 0.1.1

Exit with code, stdio & stderr
Documentation

exit-with

crates.io coverage build-linux-gnu build-linux-musl build-macos build-macos-aarch64 build-windows mit-license apache-license cc mbh es

Exit with code, stdio & stderr

Overview

Minimalistic command-line utility that terminates immediately after starting, while controlling the exit code, standard output (stdout) message and standard error (stderr) message in a single invocation.

Usage

exit-with [code] [msg-1] [msg-2] 

Examples

code stdout stderr command
0 - - exit-with
0 - - exit-with 0
0 hello - exit-with hello
0 hello world exit-with hello world

License

Licensed under either of

at your option.

Contribution

Any contributions to exit-with are greatly appreciated. All contributions intentionally submitted for inclusion in the work by you, shall be dual licensed as above, without any additional terms or conditions.