You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It never had an RFC, so it needs someone to figure out what it should look like and how it should be used. Since you're looking at related things, maybe its worth experimenting with here?
It might be useful to have things define Into<ExitCode> instead of Into<i32>; I don't know.
The text was updated successfully, but these errors were encountered:
Hey, thanks for the comment. I was aware of std::process::ExitCode, but one of the goals of this crate is to allow a user to specify specific exit codes rather than simply generic success/failure. Unless I am missing something, requiring the user to impl Into<ExitCode> would restrict them to those two options.
Is there a way to extend ExitCode to this use case?
Certainly making them from integers is also logical. It's non-obvious if it should always support i32, or try to be u8 sometimes and DWORD on Windows, or what.
There's the unstable
std::process::ExitCode
(tracking issue rust-lang/rust#48711) that also has aTermination
impl: https://doc.rust-lang.org/nightly/std/process/struct.ExitCode.html#impl-TerminationIt never had an RFC, so it needs someone to figure out what it should look like and how it should be used. Since you're looking at related things, maybe its worth experimenting with here?
It might be useful to have things define
Into<ExitCode>
instead ofInto<i32>
; I don't know.The text was updated successfully, but these errors were encountered: