class Amber::CLI::MainCommand
- Amber::CLI::MainCommand
- Cli::Supercommand
- Cli::CommandBase
- Reference
- Object
Defined in:
amber/cli/commands.cramber/cli/commands/database.cr
amber/cli/commands/encrypt.cr
amber/cli/commands/exec.cr
amber/cli/commands/generate.cr
amber/cli/commands/new.cr
amber/cli/commands/pipelines.cr
amber/cli/commands/plugin.cr
amber/cli/commands/routes.cr
amber/cli/commands/watch.cr
Class Method Summary
-
.after_exit(name, proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.after_exit(proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.after_exit(name = nil, &block : Amber::CLI::MainCommand, Cli::Exit -> Nil)
Registers a callback for the exit group.
-
.after_initialize(name, proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a callback for the initialize group.
-
.after_initialize(proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a callback for the initialize group.
-
.after_initialize(name = nil, &block : Amber::CLI::MainCommand -> Nil)
Registers a callback for the initialize group.
-
.around_exit(name, proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.around_exit(proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.around_exit(name = nil, &block : Amber::CLI::MainCommand, Cli::Exit -> Nil)
Registers a callback for the exit group.
-
.around_initialize(name, proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a callback for the initialize group.
-
.around_initialize(proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a callback for the initialize group.
-
.around_initialize(name = nil, &block : Amber::CLI::MainCommand -> Nil)
Registers a callback for the initialize group.
-
.before_exit(name, proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.before_exit(proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.before_exit(name = nil, &block : Amber::CLI::MainCommand, Cli::Exit -> Nil)
Registers a callback for the exit group.
-
.before_initialize(name, proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a callback for the initialize group.
-
.before_initialize(proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a callback for the initialize group.
-
.before_initialize(name = nil, &block : Amber::CLI::MainCommand -> Nil)
Registers a callback for the initialize group.
-
.on_exit(name, proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.on_exit(proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.on_exit(name = nil, &block : Amber::CLI::MainCommand, Cli::Exit -> Nil)
Registers a callback for the exit group.
-
.on_initialize(name, proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a callback for the initialize group.
-
.on_initialize(proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a callback for the initialize group.
-
.on_initialize(name = nil, &block : Amber::CLI::MainCommand -> Nil)
Registers a callback for the initialize group.
-
.run(argv : Array(String) = [] of ::String, &block : Amber::CLI::MainCommand -> )
Run the command.
-
.run(argv : Array(String))
Run the command.
-
.run(previous : Cli::CommandBase, argv : Array(String) = [] of ::String)
Run the command.
-
.run
Run the command.
Instance Method Summary
-
#after_exit(name, proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#after_exit(proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#after_exit(name = nil, &block : Amber::CLI::MainCommand, Cli::Exit -> Nil)
Registers a dynamic callback for the exit group.
-
#after_initialize(name, proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a dynamic callback for the initialize group.
-
#after_initialize(proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a dynamic callback for the initialize group.
-
#after_initialize(name = nil, &block : Amber::CLI::MainCommand -> Nil)
Registers a dynamic callback for the initialize group.
-
#around_exit(name, proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#around_exit(proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#around_exit(name = nil, &block : Amber::CLI::MainCommand, Cli::Exit -> Nil)
Registers a dynamic callback for the exit group.
-
#around_initialize(name, proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a dynamic callback for the initialize group.
-
#around_initialize(proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a dynamic callback for the initialize group.
-
#around_initialize(name = nil, &block : Amber::CLI::MainCommand -> Nil)
Registers a dynamic callback for the initialize group.
-
#before_exit(name, proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#before_exit(proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#before_exit(name = nil, &block : Amber::CLI::MainCommand, Cli::Exit -> Nil)
Registers a dynamic callback for the exit group.
-
#before_initialize(name, proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a dynamic callback for the initialize group.
-
#before_initialize(proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a dynamic callback for the initialize group.
-
#before_initialize(name = nil, &block : Amber::CLI::MainCommand -> Nil)
Registers a dynamic callback for the initialize group.
-
#callback_results : Hash(String, Callback::ResultSet(Nil))
Returns callback results.
-
#callback_results_for_exit
Returns callback results of the exit group.
-
#callback_results_for_initialize
Returns callback results of the initialize group.
-
#on_exit(name, proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#on_exit(proc : Proc(Amber::CLI::MainCommand, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#on_exit(name = nil, &block : Amber::CLI::MainCommand, Cli::Exit -> Nil)
Registers a dynamic callback for the exit group.
-
#on_initialize(name, proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a dynamic callback for the initialize group.
-
#on_initialize(proc : Proc(Amber::CLI::MainCommand, Nil))
Registers a dynamic callback for the initialize group.
-
#on_initialize(name = nil, &block : Amber::CLI::MainCommand -> Nil)
Registers a dynamic callback for the initialize group.
-
#run_callbacks_for_exit(*args, &)
Invokes all callbacks of the exit group.
-
#run_callbacks_for_initialize(*args, &)
Invokes all callbacks of the initialize group.
Class Method Detail
Registers a callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Run the command.
This method is automatically defined by the Crystal CLI library.
Run the command.
This method is automatically defined by the Crystal CLI library.
Run the command.
This method is automatically defined by the Crystal CLI library.
Instance Method Detail
Registers a dynamic callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Returns callback results.
This method is automatically defined by the Crystal Callback library.
Returns callback results of the exit group.
This method is automatically defined by the Crystal Callback library.
Returns callback results of the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the exit group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Registers a dynamic callback for the initialize group.
This method is automatically defined by the Crystal Callback library.
Invokes all callbacks of the exit group.
This method is automatically defined by the Crystal Callback library.
Invokes all callbacks of the initialize group.
This method is automatically defined by the Crystal Callback library.