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.cr

Enum 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

Instance Method Detail

def failure? #

[View source]
def invalid? #

[View source]
def success? #

[View source]