struct Obsctl::CLI::Options

Defined in:

obsctl/cli/options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config_path : String, log_level : String = "info", force : Bool = false, json : Bool = false, version : Bool = false, quiet : Bool = false, color : ColorMode = ColorMode::Auto, timeout : Time::Span | Nil = nil, help : Bool = false, help_text : String = "", command : String | Nil = nil, args : Array(String) = [] of String) #

[View source]

Instance Method Detail

def args : Array(String) #

def clone #

[View source]
def color : ColorMode #

def command : String | Nil #

def config_path : String #

def copy_with(config_path _config_path = @config_path, log_level _log_level = @log_level, force _force = @force, json _json = @json, version _version = @version, quiet _quiet = @quiet, color _color = @color, timeout _timeout = @timeout, help _help = @help, help_text _help_text = @help_text, command _command = @command, args _args = @args) #

[View source]
def force : Bool #

def help : Bool #

def help_text : String #

def json : Bool #

def log_level : String #

def quiet : Bool #

def timeout : Time::Span | Nil #

def version : Bool #