jj/cli/examples/custom-command
Martin von Zweigbergk 275504235b cli: replace ExitCode by u8
I'd like to make the internal `jj` binary at Google log the exit code,
but `ExitCode` doesn't seem to provide any way of getting the numeric
code out of it. This patch therefore replaces `ExitCode` by `u8` and
lets the `main()` function convert it to `ExitCode`. It's a bit
unfortunate but I don't see a better solution. It doesn't seem worth
it to create our own newtype for it.
2025-05-17 05:45:59 +00:00
..
main.rs cli: replace ExitCode by u8 2025-05-17 05:45:59 +00:00