struct Clicr::Command(Action, Arguments, Commands, Options)

Included Modules

Defined in:

command.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.create(name : String, short : String, label : String | Nil = nil, description : String | Nil = nil, inherit : Array(String) | Nil = nil, exclude : Array(String) | Nil = nil, action : Action = nil, arguments : Arguments = nil, commands : Commands = nil, options : Options = nil) #

[View source]

Instance Method Detail

def arguments #

[View source]
def description #

[View source]
def exclude #

[View source]
def exec(command_name : String, clicr : Clicr) #

Executes an action, if availble.


[View source]
def inherit #

[View source]
def label #

[View source]
def name #

[View source]
def options #

[View source]
def short #

[View source]
def sub_commands #

[View source]