class Envcat::Cli
- Envcat::Cli
- Reference
- Object
Defined in:
envcat/cli.crConstant Summary
-
E_BUG =
255 -
E_INVALID =
1 -
E_IO =
7 -
E_OK =
0 -
E_PARSE =
11 -
E_SYNTAX =
3 -
E_UNDEFINED =
5 -
HELP_FOOTER =
"See https://github.com/busyloop/envcat for documentation and usage examples."
Constructors
Class Method Summary
- .be_helpful(opts, io)
- .check_format_flag(opts)
- .default_format
- .help
- .invoke(argv = ARGV, io_out = STDOUT, io_err = STDERR, io_in = STDIN)
- .process_check_flags(opts, env)
- .process_format_flag(opts, env, io_out, io_err, io_in)
- .process_input_flags(opts)
- .process_set_flags(opts, envs)
- .process_version_flag(opts, io)
-
.toka_options : Toka::OptionDescriptor
Descriptor of available options
Instance Method Summary
-
#check : Array(String)
Getter for
#check. -
#format : String
Getter for
#format. -
#help : Bool | Nil
Getter for
#help. -
#help? : Bool?
Getter for
#help. -
#input : Array(String)
Generate option getters Getter for
#input. - #positional_options : Array(String)
-
#set : Array(String)
Getter for
#set. -
#version : Bool | Nil
Getter for
#version. -
#version? : Bool?
Getter for
#version.
Constructor Detail
Class Method Detail
Instance Method Detail
def check : Array(String)
#
Getter for #check.
This option can be accessed through the long-option --check
or the short-option -c
def format : String
#
Getter for #format.
This option can be accessed through the long-option --format
or the short-option -f
def help : Bool | Nil
#
Getter for #help.
This option can be accessed through the long-option --help
or the short-option -h, -H
def input : Array(String)
#
Generate option getters
Getter for #input.
This option can be accessed through the long-option --input
or the short-option -i
def set : Array(String)
#
Getter for #set.
This option can be accessed through the long-option --set
or the short-option -s