struct Fastpass::CLI::Server::Flags

Overview

Extend the flags struct to include the flag

Defined in:

fastpass/cli/server.cr:9
fastpass/cli/server.cr:11
fastpass/cli/server.cr:12
fastpass/cli/server.cr:13

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}, "redis" => {kind: "nil", type: "String", default: "nil", description: {"--redis", ""}, short: "nil", long: "redis", is_required: false}, "fs" => {kind: "nil", type: "String", default: "nil", description: {"--fs", ""}, short: "nil", long: "fs", is_required: false}, "memory" => {kind: "bool", type: "Bool", default: "false", description: {"--memory", ""}, short: "nil", long: "memory", 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 fs : String? #

[View source]
def inspect(io) #

[View source]
def memory #

[View source]
def redis : String? #

[View source]
def validate!(command) #