class Athena::Console::Commands::Generic
- Athena::Console::Commands::Generic
- Athena::Console::Command
- Reference
- Object
Overview
A generic implementation of ACON::Command
that is instantiated with a block that will be executed as part of the #execute
method.
This is the command class used as part of ACON::Application#register
.
Defined in:
commands/generic.crConstructors
Instance methods inherited from class Athena::Console::Command
aliases(aliases : Enumerable(String)) : selfaliases : Array(String)
aliases(*aliases : String) : self aliases, aliases=(aliases : Array(String)) aliases=, application : ACON::Application application, application=(application : ACON::Application | Nil) : Nil application=, application? : ACON::Application | Nil application?, argument(name : String, mode : ACON::Input::Argument::Mode = :optional, description : String = "", default = nil, suggested_values : Enumerable(String) | Nil = nil) : self
argument(name : String, mode : ACON::Input::Argument::Mode = :optional, description : String = "", default = nil, &suggested_values : ACON::Completion::Input -> Array(String)) : self argument, complete(input : ACON::Completion::Input, suggestions : ACON::Completion::Suggestions) : Nil complete, definition(definition : Array(ACON::Input::Argument | ACON::Input::Option)) : self
definition(definition : ACON::Input::Definition) : self
definition : ACON::Input::Definition
definition(*definitions : ACON::Input::Argument | ACON::Input::Option) : self definition, description(description : String) : self
description : String description, enabled? : Bool enabled?, help(help : String) : self
help : String help, help=(help : String) help=, helper(helper_class : T.class) : T forall T helper, helper_set : ACON::Helper::HelperSet | Nil helper_set, helper_set=(helper_set : ACON::Helper::HelperSet | Nil) helper_set=, hidden(hidden : Bool = true) : self hidden, hidden? : Bool hidden?, ignore_validation_errors : Nil ignore_validation_errors, name(name : String) : self
name : String name, name? : String | Nil name?, option(name : String, shortcut : String | Nil = nil, value_mode : ACON::Input::Option::Value = :none, description : String = "", default = nil, suggested_values : Enumerable(String) | Nil = nil) : self
option(name : String, shortcut : String | Nil = nil, value_mode : ACON::Input::Option::Value = :none, description : String = "", default = nil, &suggested_values : ACON::Completion::Input -> Array(String)) : self option, process_title(title : String) : self process_title, processed_help : String processed_help, run(input : ACON::Input::Interface, output : ACON::Output::Interface) : ACON::Command::Status run, synopsis(short : Bool = false) : String synopsis, usage(usage : String) : self usage, usages : Array(String) usages