module Cmds

Defined in:

cmds.cr
cmds/desc.cr
cmds/errors.cr
cmds/navigatable.cr
cmds/navigator.cr
cmds/state.cr
cmds/usage.cr

Constant Summary

PROGRAM = File.basename(PROGRAM_NAME)
PROGRAM_CMD_TABLES = Hash(String, CmdTable).new

Class Method Summary

Macro Summary

Class Method Detail

def self.[](name) #

[View source]
def self.[]?(name) #

[View source]
def self.cmd_table : CmdTable #

[View source]
def self.names : Array(String) #

[View source]
def self.program_cmd_table(name) : CmdTable #

[View source]
def self.program_cmd_table?(name) : CmdTable | Nil #

[View source]
def self.register(program : String, name : String, cmd) : CmdTable #

[View source]
def self.run(args = ARGV) #

[View source]
def self.single_binary_name : String #

[View source]
def self.single_binary_name=(v) #

[View source]

Macro Detail

macro command(name, group = nil) #

[View source]
macro program_command(prog, name) #

[View source]