We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current prototype always exit with 0 because I haven't implemented anything related to exit code.
In this good first issue, you will learn about the std::process::Termination trait and the std::process::ExitCode struct.
std::process::Termination
std::process::ExitCode
In oxc_cli, you may define a wrapper enum for all the possible exit states
oxc_cli
#[derive(Debug)] pub enum CliRunResult { None, PathNotFound { path: PathBuf, }, LintResult { ... bunch of stats and stuff }, }
and nice messages inside the report method.
report
Finally inside main.rs, you can return the run result with std::process::Termination implemented on it.
main.rs
fn main() -> CliRunResult {}
Have fun!
The text was updated successfully, but these errors were encountered:
this was implemented in #52 and #56
Sorry, something went wrong.
No branches or pull requests
The current prototype always exit with 0 because I haven't implemented anything related to exit code.
In this good first issue, you will learn about the
std::process::Termination
trait and thestd::process::ExitCode
struct.In
oxc_cli
, you may define a wrapper enum for all the possible exit statesand nice messages inside the
report
method.Finally inside
main.rs
, you can return the run result withstd::process::Termination
implemented on it.Have fun!
The text was updated successfully, but these errors were encountered: