class Amber::CLI::MainCommand::Pipelines
- Amber::CLI::MainCommand::Pipelines
- Command
- Cli::Command
- Cli::CommandBase
- Reference
- Object
Defined in:
amber/cli/commands/pipelines.crConstant Summary
-
FAILED_TO_PARSE_ERROR =
"Could not parse pipeline/plugs in #{ROUTES_PATH}"
-
LABELS =
["Pipeline", "Pipe"] of ::String
-
LABELS_WITHOUT_PLUGS =
["Pipeline"] of ::String
-
PIPELINE_REGEX =
/^ \s* pipeline # match pipeline \s+ # require at least one whitespace character after pipeline ( (?: (?: \:(?:\w+) | \"(?:\w+)\" ) (?:\,\s*)? )+ ) # match and capture all contiguous words /x
-
PLUG_REGEX =
/^ \s* plug # match plug \s+ # require at least one whitespace character after plug ( [\w:]+ # match at least one words with maybe a colon )? (?: [\.\s*\(] # until we reach ., spaces, or braces )? /x
-
ROUTES_PATH =
"config/routes.cr"
-
UNRECOGNIZED_OPTION =
"Unrecognized option"
Class Method Summary
-
.after_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.after_exit(proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.after_exit(name = nil, &block : Amber::CLI::MainCommand::Pipelines, Cli::Exit -> Nil)
Registers a callback for the exit group.
-
.after_initialize(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a callback for the initialize group.
-
.after_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a callback for the initialize group.
-
.after_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)
Registers a callback for the initialize group.
-
.around_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.around_exit(proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.around_exit(name = nil, &block : Amber::CLI::MainCommand::Pipelines, Cli::Exit -> Nil)
Registers a callback for the exit group.
-
.around_initialize(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a callback for the initialize group.
-
.around_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a callback for the initialize group.
-
.around_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)
Registers a callback for the initialize group.
-
.before_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.before_exit(proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.before_exit(name = nil, &block : Amber::CLI::MainCommand::Pipelines, Cli::Exit -> Nil)
Registers a callback for the exit group.
-
.before_initialize(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a callback for the initialize group.
-
.before_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a callback for the initialize group.
-
.before_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)
Registers a callback for the initialize group.
-
.on_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.on_exit(proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a callback for the exit group.
-
.on_exit(name = nil, &block : Amber::CLI::MainCommand::Pipelines, Cli::Exit -> Nil)
Registers a callback for the exit group.
-
.on_initialize(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a callback for the initialize group.
-
.on_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a callback for the initialize group.
-
.on_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)
Registers a callback for the initialize group.
-
.run(argv : Array(String) = [] of ::String, &block : Amber::CLI::MainCommand::Pipelines -> )
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::Pipelines, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#after_exit(proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#after_exit(name = nil, &block : Amber::CLI::MainCommand::Pipelines, Cli::Exit -> Nil)
Registers a dynamic callback for the exit group.
-
#after_initialize(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a dynamic callback for the initialize group.
-
#after_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a dynamic callback for the initialize group.
-
#after_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)
Registers a dynamic callback for the initialize group.
-
#around_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#around_exit(proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#around_exit(name = nil, &block : Amber::CLI::MainCommand::Pipelines, Cli::Exit -> Nil)
Registers a dynamic callback for the exit group.
-
#around_initialize(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a dynamic callback for the initialize group.
-
#around_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a dynamic callback for the initialize group.
-
#around_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)
Registers a dynamic callback for the initialize group.
-
#before_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#before_exit(proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#before_exit(name = nil, &block : Amber::CLI::MainCommand::Pipelines, Cli::Exit -> Nil)
Registers a dynamic callback for the exit group.
-
#before_initialize(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a dynamic callback for the initialize group.
-
#before_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a dynamic callback for the initialize group.
-
#before_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)
Registers a dynamic callback for the initialize group.
-
#callback_results_for_exit
Returns callback results of the exit group.
-
#callback_results_for_initialize
Returns callback results of the initialize group.
- #current_pipe : String | Nil
- #current_pipe=(current_pipe : String | Nil)
-
#on_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#on_exit(proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))
Registers a dynamic callback for the exit group.
-
#on_exit(name = nil, &block : Amber::CLI::MainCommand::Pipelines, Cli::Exit -> Nil)
Registers a dynamic callback for the exit group.
-
#on_initialize(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a dynamic callback for the initialize group.
-
#on_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))
Registers a dynamic callback for the initialize group.
-
#on_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)
Registers a dynamic callback for the initialize group.
- #result : Array({pipes: Array(String), plugs: Array(String)})
-
#run
Runs the command.
-
#run_callbacks_for_exit(*args, &)
Invokes all callbacks of the exit group.
-
#run_callbacks_for_initialize(*args, &)
Invokes all callbacks of the initialize group.
Instance methods inherited from class Command
after_exit(name, proc : Proc(Command, Cli::Exit, Nil))after_exit(proc : Proc(Command, Cli::Exit, Nil))
after_exit(name = nil, &block : Command, Cli::Exit -> Nil) after_exit, after_initialize(name, proc : Proc(Command, Nil))
after_initialize(proc : Proc(Command, Nil))
after_initialize(name = nil, &block : Command -> Nil) after_initialize, around_exit(name, proc : Proc(Command, Cli::Exit, Nil))
around_exit(proc : Proc(Command, Cli::Exit, Nil))
around_exit(name = nil, &block : Command, Cli::Exit -> Nil) around_exit, around_initialize(name, proc : Proc(Command, Nil))
around_initialize(proc : Proc(Command, Nil))
around_initialize(name = nil, &block : Command -> Nil) around_initialize, before_exit(name, proc : Proc(Command, Cli::Exit, Nil))
before_exit(proc : Proc(Command, Cli::Exit, Nil))
before_exit(name = nil, &block : Command, Cli::Exit -> Nil) before_exit, before_initialize(name, proc : Proc(Command, Nil))
before_initialize(proc : Proc(Command, Nil))
before_initialize(name = nil, &block : Command -> Nil) before_initialize, callback_results : Hash(String, Callback::ResultSet(Nil)) callback_results, callback_results_for_exit callback_results_for_exit, callback_results_for_initialize callback_results_for_initialize, error(msg) error, info(msg) info, on_exit(name, proc : Proc(Command, Cli::Exit, Nil))
on_exit(proc : Proc(Command, Cli::Exit, Nil))
on_exit(name = nil, &block : Command, Cli::Exit -> Nil) on_exit, on_initialize(name, proc : Proc(Command, Nil))
on_initialize(proc : Proc(Command, Nil))
on_initialize(name = nil, &block : Command -> Nil) on_initialize, run_callbacks_for_exit(*args, &) run_callbacks_for_exit, run_callbacks_for_initialize(*args, &) run_callbacks_for_initialize
Class methods inherited from class Command
after_exit(name, proc : Proc(Command, Cli::Exit, Nil))after_exit(proc : Proc(Command, Cli::Exit, Nil))
after_exit(name = nil, &block : Command, Cli::Exit -> Nil) after_exit, after_initialize(name, proc : Proc(Command, Nil))
after_initialize(proc : Proc(Command, Nil))
after_initialize(name = nil, &block : Command -> Nil) after_initialize, around_exit(name, proc : Proc(Command, Cli::Exit, Nil))
around_exit(proc : Proc(Command, Cli::Exit, Nil))
around_exit(name = nil, &block : Command, Cli::Exit -> Nil) around_exit, around_initialize(name, proc : Proc(Command, Nil))
around_initialize(proc : Proc(Command, Nil))
around_initialize(name = nil, &block : Command -> Nil) around_initialize, before_exit(name, proc : Proc(Command, Cli::Exit, Nil))
before_exit(proc : Proc(Command, Cli::Exit, Nil))
before_exit(name = nil, &block : Command, Cli::Exit -> Nil) before_exit, before_initialize(name, proc : Proc(Command, Nil))
before_initialize(proc : Proc(Command, Nil))
before_initialize(name = nil, &block : Command -> Nil) before_initialize, on_exit(name, proc : Proc(Command, Cli::Exit, Nil))
on_exit(proc : Proc(Command, Cli::Exit, Nil))
on_exit(name = nil, &block : Command, Cli::Exit -> Nil) on_exit, on_initialize(name, proc : Proc(Command, Nil))
on_initialize(proc : Proc(Command, Nil))
on_initialize(name = nil, &block : Command -> Nil) on_initialize, run(argv : Array(String) = [] of ::String, &block : Command -> ) run
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 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.
Runs the command.
This method is an entrypoint for running a command.
Subclasses must override this method.
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.