class

Kommando::Namespace

Inherits Reference < Object

Constants

HELP = ["help", "?"] of ::String
RESERVED_NAMES = HELP

Constructors

new(name : String)
Source

Class methods

root
Source

Instance methods

command(cmd : Command::Meta, name : String = cmd.command_name)
Source
commands
Source
commands(*cmds : Command::Meta)
Source
exec(args : Array(String) = ARGV, io : IO = STDOUT, err : IO = STDERR)

Like #run, but prints execptions to stderr and exits the Process. This method makes the namespace act as a CLI.

Source
help(args : Array(String), io : IO)
Source
name
Source
namespace(name : String | Symbol, &)
Source
namespaces
Source
run(args : Array(String), io : IO = STDOUT)
Source