class AmberCLI::Commands::PipelinesCommand

Defined in:

amber_cli/commands/pipelines.cr

Constant 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"

Instance Method Summary

Instance methods inherited from class AmberCLI::Core::BaseCommand

execute execute, help_description : String help_description, option_parser : OptionParser option_parser, parse_and_execute(args : Array(String)) parse_and_execute, parsed_options : Hash(String, String | Bool | Array(String)) parsed_options, remaining_arguments : Array(String) remaining_arguments, setup_command_options setup_command_options

Constructor methods inherited from class AmberCLI::Core::BaseCommand

new(command_name : String) new

Instance Method Detail

def execute #

[View source]
def help_description : String #

[View source]
def result : Array({pipes: Array(String), plugs: Array(String)}) #

[View source]
def setup_command_options #

[View source]
def show_plugs : Bool #

[View source]