abstract class Cli::CommandBase

Direct Known Subclasses

Defined in:

cli/command_base.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(__parent : Cli::CommandBase | Nil, argv) #

[View source]

Class Method Detail

def self.__global_name #

[View source]
def self.__help_on_parsing_error? #

[View source]
def self.__local_name #

[View source]
def self.__run(argv) #

[View source]
def self.__run_with_rescue(argv) #

[View source]
def self.__run_without_rescue(argv) #

[View source]
def self.__version #

[View source]
def self.__version? #

[View source]
def self.run(argv = [] of ::String) #

[View source]

Instance Method Detail

def __args #

[View source]
def __error!(message = nil, code = nil, help = false, indent = 2) #

[View source]
def __exit!(message = nil, error = false, code = nil, help = false, indent = 2) #

[View source]
def __help!(message = nil, error = nil, code = nil, indent = 2) #

[View source]
def __named_args #

[View source]
def __nameless_args #

[View source]
def __option_model #

[View source]
def __options #

[View source]
def __parent : Cli::CommandBase | Nil #

[View source]
def __parsed_args #

[View source]
def __rescue_parsing_error(&) #

[View source]
def __run #

[View source]
def __unparsed_args #

[View source]
def __version #

[View source]
def __version! #

[View source]
def __version? #

[View source]
def args #

[View source]
def error!(message = nil, code = nil, help = false, indent = 2) #

[View source]
def exit!(message = nil, error = false, code = nil, help = false, indent = 2) #

[View source]
def help!(message = nil, error = nil, code = nil, indent = 2) #

[View source]
def named_args #

[View source]
def nameless_args #

[View source]
def options #

[View source]
def parsed_args #

[View source]
def run #

[View source]
def unparsed_args #

[View source]
def version #

[View source]
def version! #

[View source]
def version? #

[View source]

Macro Detail

macro __define_supercommand(type) #

[View source]
macro command_name(value) #

[View source]
macro disable_help_on_parsing_error! #

[View source]
macro version(value) #

[View source]