struct Mint::Cli::Build::Flags

Overview

Extend the flags struct to include the flag

Defined in:

commands/build.cr:3
commands/build.cr:8
commands/build.cr:11
commands/build.cr:15
commands/build.cr:19
commands/build.cr:23
commands/build.cr:27
commands/build.cr:32
commands/build.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}, "runtime" => {kind: "nil", type: "String", default: "nil", description: {"--runtime", "If specified, the supplied runtime will be used instead of the default."}, short: "nil", long: "runtime", is_required: false}, "no_optimize" => {kind: "bool", type: "Bool", default: "false", description: {"--no-optimize", "If specified, the resulting JavaScript code will not be optimized."}, short: "nil", long: "no-optimize", is_required: true}, "skip_icons" => {kind: "bool", type: "Bool", default: "false", description: {"--skip-icons", "If specified, the application icons will not be generated."}, short: "nil", long: "skip-icons", is_required: true}, "generate_manifest" => {kind: "bool", type: "Bool", default: "false", description: {"--generate-manifest", "If specified, the web manifest will be generated."}, short: "nil", long: "generate-manifest", is_required: true}, "verbose" => {kind: "bool", type: "Bool", default: "false", description: {"--verbose", "If specified, all written files will be logged."}, short: "nil", long: "verbose", is_required: true}, "watch" => {kind: "bool", type: "Bool", default: "false", description: {"--watch, -w", "If specified, will build on every change."}, short: "w", long: "watch", is_required: true}, "timings" => {kind: "bool", type: "Bool", default: "false", description: {"--timings", "If specified, timings will be printed."}, short: "nil", long: "timings", is_required: true}, "env" => {kind: "nil", type: "String", default: "nil", description: {"--env, -e", "Loads the given .env file."}, short: "e", long: "env", 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 env : String? #

[View source]
def generate_manifest #

[View source]
def inspect(io) #

[View source]
def no_optimize #

[View source]
def runtime : String? #

[View source]
def skip_icons #

[View source]
def timings #

[View source]
def validate!(command) #

def verbose #

[View source]
def watch #

[View source]