l3nz / cli-matic

Compact, hands-free [sub]command line parsing library for Clojure.
Eclipse Public License 2.0
361 stars 29 forks source link

Planck: return value not set #63

Closed l3nz closed 5 years ago

l3nz commented 5 years ago

Scripts do not set the return value. How do we do it?

Should be trivial: https://stackoverflow.com/questions/30610409/returning-a-value-to-shell-script-from-a-node-js-file

l3nz commented 5 years ago

Maybe it's enough to do (js/process.exit code)

l3nz commented 5 years ago

This should be it: http://planck-repl.org/planck-core.html#exit

l3nz commented 5 years ago

Please note that there is an issue with return codes: https://github.com/planck-repl/planck/issues/853