module

Athena::Console::Loader::Interface

Normally the ACON::Application#add method requires instances of each command to be provided. ACON::Loader::Interface provides a way to lazily instantiate only the command(s) being called, which can be more performant since not every command needs instantiated.

Instance methods

get(name : String) : ACON::Command

Returns an ACON::Command with the provided name. Raises ACON::Exception::CommandNotFound if it is not defined.

Source
has?(name : String) : Bool

Returns true if self has a command with the provided name, otherwise false.

Source
names

Returns all of the command names defined within self.

Source