class

Command

Inherits Cli::Command < Cli::CommandBase < Reference < Object

Constants

Log = ::Log.for(self)

Class methods

after_exit(name, proc : Proc(Command, Cli::Exit, Nil))

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

after_exit(proc : Proc(Command, Cli::Exit, Nil))

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

after_exit(name = nil, &block : Command, Cli::Exit -> Nil)

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

after_initialize(name, proc : Proc(Command, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

after_initialize(proc : Proc(Command, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

after_initialize(name = nil, &block : Command -> Nil)

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

around_exit(name, proc : Proc(Command, Cli::Exit, Nil))

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

around_exit(proc : Proc(Command, Cli::Exit, Nil))

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

around_exit(name = nil, &block : Command, Cli::Exit -> Nil)

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

around_initialize(name, proc : Proc(Command, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

around_initialize(proc : Proc(Command, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

around_initialize(name = nil, &block : Command -> Nil)

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

before_exit(name, proc : Proc(Command, Cli::Exit, Nil))

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

before_exit(proc : Proc(Command, Cli::Exit, Nil))

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

before_exit(name = nil, &block : Command, Cli::Exit -> Nil)

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

before_initialize(name, proc : Proc(Command, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

before_initialize(proc : Proc(Command, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

before_initialize(name = nil, &block : Command -> Nil)

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

on_exit(name, proc : Proc(Command, Cli::Exit, Nil))

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

on_exit(proc : Proc(Command, Cli::Exit, Nil))

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

on_exit(name = nil, &block : Command, Cli::Exit -> Nil)

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

on_initialize(name, proc : Proc(Command, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

on_initialize(proc : Proc(Command, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

on_initialize(name = nil, &block : Command -> Nil)

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

run(argv : Array(String) = [] of ::String, &block : Command -> )

Run the command.

This method is automatically defined by the Crystal CLI library.

Instance methods

after_exit(name, proc : Proc(Command, Cli::Exit, Nil))

Registers a dynamic callback for the exit group.

This method is automatically defined by the Crystal Callback library.

after_exit(proc : Proc(Command, Cli::Exit, Nil))

Registers a dynamic callback for the exit group.

This method is automatically defined by the Crystal Callback library.

after_exit(name = nil, &block : Command, Cli::Exit -> Nil)

Registers a dynamic callback for the exit group.

This method is automatically defined by the Crystal Callback library.

after_initialize(name, proc : Proc(Command, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

after_initialize(proc : Proc(Command, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

after_initialize(name = nil, &block : Command -> Nil)

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

around_exit(name, proc : Proc(Command, Cli::Exit, Nil))

Registers a dynamic callback for the exit group.

This method is automatically defined by the Crystal Callback library.

around_exit(proc : Proc(Command, Cli::Exit, Nil))

Registers a dynamic callback for the exit group.

This method is automatically defined by the Crystal Callback library.

around_exit(name = nil, &block : Command, Cli::Exit -> Nil)

Registers a dynamic callback for the exit group.

This method is automatically defined by the Crystal Callback library.

around_initialize(name, proc : Proc(Command, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

around_initialize(proc : Proc(Command, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

around_initialize(name = nil, &block : Command -> Nil)

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

before_exit(name, proc : Proc(Command, Cli::Exit, Nil))

Registers a dynamic callback for the exit group.

This method is automatically defined by the Crystal Callback library.

before_exit(proc : Proc(Command, Cli::Exit, Nil))

Registers a dynamic callback for the exit group.

This method is automatically defined by the Crystal Callback library.

before_exit(name = nil, &block : Command, Cli::Exit -> Nil)

Registers a dynamic callback for the exit group.

This method is automatically defined by the Crystal Callback library.

before_initialize(name, proc : Proc(Command, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

before_initialize(proc : Proc(Command, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

before_initialize(name = nil, &block : Command -> Nil)

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

callback_results

Returns callback results.

This method is automatically defined by the Crystal Callback library.

callback_results_for_exit

Returns callback results of the exit group.

This method is automatically defined by the Crystal Callback library.

callback_results_for_initialize

Returns callback results of the initialize group.

This method is automatically defined by the Crystal Callback library.

error(msg)
Source
info(msg)
Source
on_exit(name, proc : Proc(Command, Cli::Exit, Nil))

Registers a dynamic callback for the exit group.

This method is automatically defined by the Crystal Callback library.

on_exit(proc : Proc(Command, Cli::Exit, Nil))

Registers a dynamic callback for the exit group.

This method is automatically defined by the Crystal Callback library.

on_exit(name = nil, &block : Command, Cli::Exit -> Nil)

Registers a dynamic callback for the exit group.

This method is automatically defined by the Crystal Callback library.

on_initialize(name, proc : Proc(Command, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

on_initialize(proc : Proc(Command, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

on_initialize(name = nil, &block : Command -> Nil)

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

run_callbacks_for_exit(*args, &)

Invokes all callbacks of the exit group.

This method is automatically defined by the Crystal Callback library.

run_callbacks_for_initialize(*args, &)

Invokes all callbacks of the initialize group.

This method is automatically defined by the Crystal Callback library.

Nested types