struct Main::Flags

Overview

Extend the flags struct to include the flag

Defined in:

main.cr:5
main.cr:20
main.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}, "verbose" => {kind: "bool", type: "Bool", default: "false", description: {"--verbose, -v", "Output the actual kubectl commands that are used to generate the kubeconfig file"}, short: "v", long: "verbose", is_required: true}, "dry_run" => {kind: "bool", type: "Bool", default: "false", description: {"--dry-run, -v", "Don't actually generate the kubeconfig file (also turns on verbose mode)"}, short: "v", long: "dry-run", 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 dry_run #

[View source]
def inspect(io) #

[View source]
def validate!(command) #

def verbose #

[View source]