class

Amber::CLI::MainCommand::Pipelines

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

Constants

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 methods

after_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

after_exit(proc : Proc(Amber::CLI::MainCommand::Pipelines, 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 : Amber::CLI::MainCommand::Pipelines, 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(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

after_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

after_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

around_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

around_exit(proc : Proc(Amber::CLI::MainCommand::Pipelines, 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 : Amber::CLI::MainCommand::Pipelines, 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(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

around_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

around_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

before_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

before_exit(proc : Proc(Amber::CLI::MainCommand::Pipelines, 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 : Amber::CLI::MainCommand::Pipelines, 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(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

before_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

before_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

on_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, Cli::Exit, Nil))

Registers a callback for the exit group.

This method is automatically defined by the Crystal Callback library.

on_exit(proc : Proc(Amber::CLI::MainCommand::Pipelines, 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 : Amber::CLI::MainCommand::Pipelines, 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(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

on_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

on_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> 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 : Amber::CLI::MainCommand::Pipelines -> )

Run the command.

This method is automatically defined by the Crystal CLI library.

run(argv : Array(String))

Run the command.

This method is automatically defined by the Crystal CLI library.

Source
run(previous : Cli::CommandBase, argv : Array(String) = [] of ::String)

Run the command.

This method is automatically defined by the Crystal CLI library.

Source
run

Run the command.

This method is automatically defined by the Crystal CLI library.

Source

Instance methods

after_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, 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(Amber::CLI::MainCommand::Pipelines, 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 : Amber::CLI::MainCommand::Pipelines, 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(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

after_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

after_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

around_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, 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(Amber::CLI::MainCommand::Pipelines, 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 : Amber::CLI::MainCommand::Pipelines, 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(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

around_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

around_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

before_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, 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(Amber::CLI::MainCommand::Pipelines, 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 : Amber::CLI::MainCommand::Pipelines, 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(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

before_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

before_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)

Registers a dynamic callback for the initialize group.

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.

current_pipe
Source
current_pipe=(current_pipe : String | Nil)
Source
on_exit(name, proc : Proc(Amber::CLI::MainCommand::Pipelines, 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(Amber::CLI::MainCommand::Pipelines, 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 : Amber::CLI::MainCommand::Pipelines, 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(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

on_initialize(proc : Proc(Amber::CLI::MainCommand::Pipelines, Nil))

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

on_initialize(name = nil, &block : Amber::CLI::MainCommand::Pipelines -> Nil)

Registers a dynamic callback for the initialize group.

This method is automatically defined by the Crystal Callback library.

result
Source
run

Runs the command.

This method is an entrypoint for running a command.

Subclasses must override this method.

Source
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