struct Fastpass::CLI::AdhocScript::Flags

Overview

Extend the flags struct to include the flag

Defined in:

fastpass/cli/adhoc.cr:6
fastpass/cli/adhoc.cr:20
fastpass/cli/adhoc.cr:21
fastpass/cli/adhoc.cr:22
fastpass/cli/adhoc.cr:23
fastpass/cli/adhoc.cr:24
fastpass/cli/adhoc.cr:25

Constant Summary

DESCRIPTIONS = {} of String => String
SPECS = {"__help__" => {kind: "bool", type: "Bool", default: "false", description: {"--help", "Displays help for the current command."}, short: "nil", long: "help", is_required: true}, "server" => {kind: "nil", type: "String", default: "\"https://fastpass.rocks\"", description: {"--server, -s (default: \"https://fastpass.rocks\")", "Server to use."}, short: "s", long: "server", is_required: true}, "context" => {kind: "nil", type: "String", default: "\".\"", description: {"--context, -c (default: \".\")", "Directory to run in."}, short: "c", long: "context", is_required: true}, "match" => {kind: "enum", type: "Array(String)", default: "[] of String", description: {"--match, -m (default: [] of String)", "Files to match."}, short: "m", long: "match", is_required: true}, "ignore" => {kind: "enum", type: "Array(String)", default: "[] of String", description: {"--ignore, -i (default: [] of String)", "Files to ignore."}, short: "i", long: "ignore", is_required: true}, "env" => {kind: "enum", type: "Array(String)", default: "[] of String", description: {"--env, -e (default: [] of String)", "Env to match."}, short: "e", long: "env", is_required: true}, "output" => {kind: "enum", type: "Array(String)", default: "[] of String", description: {"--output, -o (default: [] of String)", "Outputs to match."}, short: "o", long: "output", is_required: true}} of String => NamedTuple(kind: String, type: String, default: String, description: Tuple(String, String | ::Nil), short: String | ::Nil, long: String, is_required: Bool)

Constructors

Instance Method Summary

Constructor Detail

def self.new(command : Admiral::Command) #

Instance Method Detail

def __help__ #

def context #

[View source]
def env #

[View source]
def ignore #

[View source]
def inspect(io) #

[View source]
def match #

[View source]
def output #

[View source]
def server #

[View source]
def validate!(command) #