abstract class Clim::Command

Defined in:

clim/command.cr
clim/command/arguments.cr
clim/command/arguments/argument.cr
clim/command/options.cr
clim/command/options/option.cr
clim/command/sub_commands.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def alias_name : Array(String) #

[View source]
def desc : String #

[View source]
def help_template_str : String #

[View source]
def name : String #

[View source]
def names #

[View source]
def usage : String #

[View source]
def version : String #

[View source]

Macro Detail

macro alias_name(*names) #

[View source]
macro argument(name, type = String, desc = "Argument description.", default = nil, required = false) #

[View source]
macro command(name, &block) #

[View source]
macro desc(description) #

[View source]
macro help(short = nil) #

[View source]
macro help_template(&block) #

[View source]
macro main #

[View source]
macro option(short, long, type = String, desc = "Option description.", default = nil, required = false) #

[View source]
macro option(short, type = String, desc = "Option description.", default = nil, required = false) #

[View source]
macro run(&block) #

[View source]
macro sub(name, &block) #

[View source]
macro usage(usage) #

[View source]
macro version(version_str, short = nil) #

[View source]