-
-
Notifications
You must be signed in to change notification settings - Fork 9.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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Chi-teck
commented
Jan 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 prefer EXIT_ERROR
instead of EXIT_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. |