struct OIJ::CLI::GenerateTemplate::Flags

Overview

Extend the flags struct to include the flag

Defined in:

oij.cr:188
oij.cr:190

Constant Summary

DESCRIPTIONS = {} of String => String
SPECS = {"__help__" => {kind: "bool", type: "Bool", default: "false", description: {"--help, -h", "Displays help for the current command."}, short: "h", long: "help", is_required: true}, "ext" => {kind: "enum", type: "Array(String)", default: "Array(String).new", description: {"--ext, -e (default: Array(String).new)", "Specify generated extensions (if not given, generate all templates)."}, short: "e", long: "ext", 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 ext #

[View source]
def inspect(io) #

[View source]
def validate!(command) #