struct
Squarectl::CLI::Arguments
- Squarectl::CLI::Arguments
- Struct
- Value
- Object
Overview
Root of the Admiral command tree and the program entry point.
Each top-level subcommand (defined under cli/) registers its own leaf
commands. Every leaf follows the same shape: load the config, resolve the
environment for its target, build a Task, and hand off to a Tasks::*
class. rescue_unknown_cmd (see admiral_patch.cr) prints help instead of
crashing on an unknown subcommand.
:nodoc:
Included Modules
- Enumerable(String)
- Iterable(String)
Defined in:
squarectl/cli.crConstant Summary
-
SPECS =
{} of String => NamedTuple(type: String, description: Tuple(String, String | ::Nil), default: String, is_required: Bool)
Constructors
Instance Method Summary
- #[](*args, **options)
- #[](*args, **options, &)
- #each(*args, **options)
- #each(*args, **options, &)
- #exists?(name : Symbol)
- #get(name : Symbol)
- #get?(name : Symbol)
- #inspect(io)
- #rest : Array(String)
- #validate!(command : Admiral::Command)
- #value_from_spec(command : Admiral::Command, *, arg : String, type, default, is_required : Bool)
Constructor Detail
Instance Method Detail
def value_from_spec(command : Admiral::Command, *, arg : String, type, default, is_required : Bool)
#