Skip to content

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.

Direct including types



abstract #get(name : String) : ACON::Command#

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

View source

abstract #has?(name : String) : Bool#

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

View source

abstract #names : Array(String)#

Returns all of the command names defined within self.

View source