struct Main::Flags

Overview

Extend the flags struct to include the flag

Defined in:

main.cr:5
main.cr:16
main.cr:22
main.cr:27
main.cr:32
main.cr:36

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}, "config_file" => {kind: "nil", type: "String", default: "nil", description: {"--config, -c", "A config file to pass when generating the cert"}, short: "c", long: "config", is_required: false}, "verbose" => {kind: "bool", type: "Bool", default: "false", description: {"--verbose, -v", "Output the actual openssl commands that are to be run"}, short: "v", long: "verbose", is_required: true}, "dry_run" => {kind: "bool", type: "Bool", default: "false", description: {"--dry-run, -v", "Don't actually generate certificates (also turns on verbose mode)"}, short: "v", long: "dry-run", is_required: true}, "dns" => {kind: "enum", type: "Array(String)", default: "[] of String", description: {"--dns (default: [] of String)", "Alternative domain that is valid for this certificate (you can specify this command multiple times)"}, short: "nil", long: "dns", is_required: false}, "ip" => {kind: "enum", type: "Array(String)", default: "[] of String", description: {"--ip (default: [] of String)", "Alternative IP that is valid for this certificate (you can specify this command multiple times)"}, short: "nil", long: "ip", is_required: false}} 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 config_file : String? #

[View source]
def dns #

[View source]
def dry_run #

[View source]
def inspect(io) #

[View source]
def ip #

[View source]
def validate!(command) #

def verbose #

[View source]