class Kommando::Namespace
- Kommando::Namespace
- Reference
- Object
Defined in:
kommando/namespace.crConstant Summary
-
HELP =
["help", "?"] of ::String
-
RESERVED_NAMES =
HELP
Constructors
Class Method Summary
Instance Method Summary
- #command(cmd : Command::Meta, name : String = cmd.command_name)
- #commands : Hash(String, Kommando::Command::Meta)
- #commands(*cmds : Command::Meta)
-
#exec(args : Array(String) = ARGV, io : IO = STDOUT, err : IO = STDERR)
Like
#run
, but prints execptions to stderr and exits the Process. - #help(args : Array(String), io : IO)
- #name : String
- #namespace(name : String | Symbol, &)
- #namespaces : Hash(String, Kommando::Namespace)
- #run(args : Array(String), io : IO = STDOUT)
Constructor Detail
Class Method Detail
Instance Method Detail
Like #run
, but prints execptions to stderr and exits the Process.
This method makes the namespace act as a CLI.