abstract class Cli::Command
Overview
The base of command classes.
Defined in:
lib/command.cr
Instance methods inherited from class Cli::CommandBase
args
args,
err
err,
error!(message : String | Nil = nil, code : Int32 | Nil = nil, help : Bool = false, indent = 2)
error!,
exit!(message : String | Nil = nil, error : Bool = false, code : Int32 | Nil = nil, help = false, indent = 2)
exit!,
help!(message : String | Nil = nil, error : Bool | Nil = nil, code : Int32 | Nil = nil, indent = 2)
help!,
io
io,
nameless_args : Array(String)
nameless_args,
options
options,
out
out,
print(*args)
print,
puts(*args)
puts,
run
run,
unparsed_args : Array(String)
unparsed_args,
version : String
version,
version!
version!,
version? : String | Nil
version?
Class methods inherited from class Cli::CommandBase
command_name(value : String)
command_name,
disable_help_on_parsing_error!
disable_help_on_parsing_error!,
generate_bash_completion
generate_bash_completion,
generate_zsh_completion(functional : Bool = true)
generate_zsh_completion,
version(value : String)
version