Skip to content
New issue

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

ExitCode is not a useful return type #175

Closed
Kampfkarren opened this issue Apr 8, 2024 · 0 comments · Fixed by #178
Closed

ExitCode is not a useful return type #175

Kampfkarren opened this issue Apr 8, 2024 · 0 comments · Fixed by #178
Labels
enhancement New feature or request
Milestone

Comments

@Kampfkarren
Copy link

Runtime.run returns an ExitCode, which cannot be usefully consumes by anything other than to exit.

ExitCode is intended to be consumed only by the standard library (via Termination::report()), and intentionally does not provide accessors like PartialEq, Eq, or Hash. Instead the standard library provides the canonical SUCCESS and FAILURE exit codes as well as From for ExitCode for constructing other arbitrary exit codes.

I am using lune as a test runner inside of another Rust program, and it would be very useful to be able to set and check the exit code without using an error.

@filiptibell filiptibell added the enhancement New feature or request label Apr 8, 2024
@filiptibell filiptibell added this to the 0.9.0 milestone Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants