struct Squarectl::CLI::Completion::Bash::Flags

Overview

Prints the embedded Bash completion script so it can be sourced, e.g. source <(squarectl completion bash).

Defined in:

squarectl/cli/completion.cr

Constant Summary

DESCRIPTIONS = {} of String => String
SETTINGS = {"allow_undefined_flags" => false}

Per-class parser settings, populated at compile time by the DSL macros. Like SPECS, this constant belongs to this command's nested Flags struct only: sub-commands get their own and never inherit these values.

SPECS = {} 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 inspect(io) #

[View source]
def validate!(command) #