struct Fastpass::CLI::AdhocScript::Flags
- Fastpass::CLI::AdhocScript::Flags
- Struct
- Value
- Object
Overview
Extend the flags struct to include the flag
Defined in:
fastpass/cli/adhoc.cr:6fastpass/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)