ExitCode multimethod

Methods

ExitCode(x:Any) Source: bootstrap.ngs:42
Undocumented

Returns

always 0
ExitCode(b:Bool) Source: bootstrap.ngs:45
Undocumented

Returns

0 for true, 1 for false
ExitCode(n:Int) Source: bootstrap.ngs:48
Undocumented

Returns

n
ExitCode(e:Exception) Source: bootstrap.ngs:51
Undocumented

Returns

Always 240
ExitCode(b:Box) Source: stdlib.ngs:2846
Zero for FullBox and one for EmptyBox
ExitCode(r:Result) Source: stdlib.ngs:3109
EXPERIMENTAL! Do not use!
ExitCode(ee:ExitException) Source: stdlib.ngs:3954
Convert ExitException to an exit code.

Returns

ee.exit_code
ExitCode(p:Process) Source: stdlib.ngs:4877
Convert Process to exit code. Waits for the process to finish and uses its exit code. To be used for NGS process exit such as in "ngs -e 'my_code(); $(ls)'".
ExitCode(pp:ProcessesPipeline) Source: stdlib.ngs:4892
Convert ProcessesPipeline to exit code. Waits for the processes to finish. Returns first non-zero exit code. Returns zero if all exit codes are zero.
ExitCode(t:Terminal) Source: autoload/Terminal.ngs:55
Undocumented