enum
Athena::Console::Command::Status
Overview
Represents the execution status of an ACON::Command
.
The value of each member is used as the exit code of the invocation.
TIP: The exit code may be customized by manually instantiating the enum with it. E.g. Status.new 126
.
Defined in:
command.crEnum Members
-
SUCCESS =
0
-
Represents a successful invocation with no errors.
-
FAILURE =
1
-
Represents that some error happened during invocation.
-
INVALID =
2
-
Represents the command was not used correctly, such as invalid options or missing arguments.
Instance Method Summary
-
#failure?
Returns
true
if this enum value equalsFAILURE
-
#invalid?
Returns
true
if this enum value equalsINVALID
-
#success?
Returns
true
if this enum value equalsSUCCESS