class Envcat::Cli

Defined in:

envcat/cli.cr

Constant 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

Instance Method Summary

Constructor Detail

def self.new(strings : Indexable(String) = ARGV) #

[View source]

Class Method Detail

def self.be_helpful(opts, io) #

[View source]
def self.check_format_flag(opts) #

[View source]
def self.default_format #

[View source]
def self.help #

[View source]
def self.invoke(argv = ARGV, io_out = STDOUT, io_err = STDERR, io_in = STDIN) #

[View source]
def self.process_check_flags(opts, env) #

[View source]
def self.process_format_flag(opts, env, io_out, io_err, io_in) #

[View source]
def self.process_input_flags(opts) #

[View source]
def self.process_set_flags(opts, envs) #

[View source]
def self.process_version_flag(opts, io) #

[View source]
def self.toka_options : Toka::OptionDescriptor #

Descriptor of available options


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 help? : Bool? #

Getter for #help. See #help for full documentation.


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 positional_options : Array(String) #

def set : Array(String) #

Getter for #set. This option can be accessed through the long-option --set or the short-option -s


def version : Bool | Nil #

Getter for #version. This option can be accessed through the long-option --version or the short-option


def version? : Bool? #

Getter for #version. See #version for full documentation.