class Argz::Command

Defined in:

argz/command.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Argz::DSL

build(&) build

Class methods inherited from class Argz::DSL

build(&) build

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.build(name : String, &) #

[View source]

Instance Method Detail

def action(&block : Proc(String | Bool | Nil)) #

[View source]
def actions? #

[View source]
def default(str : String) #

[View source]
def default : Bool | String #

[View source]
def default? #

[View source]
def desc(str : String) #

[View source]
def desc : String | String.class #

[View source]
def description(str : String) #

[View source]
def description : String | String.class #

[View source]
def example(name : String, &block : Proc(String)) #

[View source]
def examples : Hash(String, String) #

[View source]
def examples(&) #

[View source]
def long(str : String) #

[View source]
def long : String | String.class #

[View source]
def long? #

[View source]
def name(str : String) #

[View source]
def name : String | String.class #

[View source]
def next_action #

[View source]
def required #

[View source]
def required? : Bool #

[View source]
def run! #

[View source]
def short(str : String) #

[View source]
def short : String | String.class #

[View source]
def short? #

[View source]
def shrt(str : String) #

[View source]
def shrt : String | String.class #

[View source]
def smry(str : String) #

[View source]
def summary(str : String) #

[View source]
def summary : String | String.class #

[View source]
def to_h #

[View source]
def used? #

Check if the command has been used.


[View source]