enum

Athena::Console::Command::Status

Inherits Enum / Comparable / Value / Object

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.

Constants

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 methods

failure?

Returns true if this enum value equals FAILURE

Source
invalid?

Returns true if this enum value equals INVALID

Source
success?

Returns true if this enum value equals SUCCESS

Source