exit-with
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
- MIT license (see LICENSE-MIT) or
- Apache License, Version 2.0 (see LICENSE and NOTICE)
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.