class Synacor::RunCommand
- Synacor::RunCommand
- Athena::Console::Command
- Reference
- Object
Defined in:
synacor/run_command.crConstant Summary
-
INVALID_VALUE =
MAX_VALUE + 8
-
MAX_VALUE =
(2 ** 15).to_u16
-
REGISTERS =
MAX_VALUE...INVALID_VALUE
Class Method Summary
Instance Method Summary
-
#configure : Nil
Can be overridden to configure the current command, such as setting the name, adding arguments/options, setting help information etc.
-
#execute(input : ACON::Input::Interface, output : ACON::Output::Interface) : ACON::Command::Status
Executes the command with the provided input and output, returning the status of the invocation via
ACON::Command::Status
. - #fetch_register : Int32
- #fetch_value : UInt16
- #line_buffer : Deque(Char)
- #line_buffer=(line_buffer : Deque(Char))
- #line_cache : String
- #line_cache=(line_cache : String)
- #reading_buffer=(reading_buffer : Bool)
- #reading_buffer? : Bool
-
#setup(input : ACON::Input::Interface, output : ACON::Output::Interface) : Nil
Called after the input has been bound, but before it has been validated.
Class Method Detail
Instance Method Detail
Can be overridden to configure the current command, such as setting the name, adding arguments/options, setting help information etc.
Executes the command with the provided input and output, returning the status of the invocation via ACON::Command::Status
.
This method MUST be defined and implement the business logic for the command.
Called after the input has been bound, but before it has been validated. Can be used to setup state of the command based on the provided input data.