mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-17 16:38:54 +00:00
Document exit codes
This commit is contained in:
parent
5b1fa0f953
commit
3c1ee965ca
3 changed files with 26 additions and 11 deletions
|
|
@ -103,3 +103,13 @@ a=wye,x_sum=0.777891
|
|||
* They take more keystrokes
|
||||
* There's more to learn
|
||||
* They're highly customizable
|
||||
|
||||
## Exit codes
|
||||
|
||||
When you do `echo $?` immediately after running a Miller command (or any shell command), that's the _exit code_.
|
||||
|
||||
Miller's are as follows:
|
||||
|
||||
* 0 for normal exit.
|
||||
* 1 if an error was encountered. There should be helpful text written to `stderr`; please [file a bug report](https://github.com/johnkerl/miller/issues/new), ideally with a reproducible scenario, if the text is either missing or unhelpful.
|
||||
* 2 if there was a `panic` in the Go runtime -- you'll see lots of stack-trace lines. Please [file a bug report](https://github.com/johnkerl/miller/issues/new), ideally with a reproducible scenario, if you ever see this.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue