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, code : Int32? = nil, help : Bool = false, indent = 2) error!, exit!(message : String? = nil, error : Bool = false, code : Int32? = nil, help = false, indent = 2) exit!, help!(message : String? = nil, error : Bool? = nil, code : Int32? = 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? 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