Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[Console] Add constants for main exit codes#35478
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Chi-teck commentedJan 26, 2020
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | yes |
Deprecations? | no |
Tickets | Fix#35431 |
License | MIT |
Can we use these constants in console's own code? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I'd preferEXIT_ERROR
instead ofEXIT_FAILURE
... but "failure" seems to be the standard word for this (e.g.https://www.gnu.org/software/libc/manual/html_node/Exit-Status.html)
Thanks@Chi-teck!
What about just |
@@ -29,6 +29,9 @@ | |||
*/ | |||
class Command | |||
{ | |||
const SUCCESS = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
public const 👍🏻
Thank you@Chi-teck. |