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:13
commands/build.cr:17
commands/build.cr:21
commands/build.cr:26

Constant Summary

DESCRIPTIONS = {} of String => String
SPECS = {"env" => {kind: "nil", type: "String", default: "nil", description: {"--env, -e", "Loads the given .env file"}, short: "e", long: "env", is_required: false}, "__help__" => {kind: "bool", type: "Bool", default: "false", description: {"--help", "Displays help for the current command."}, short: "nil", long: "help", is_required: true}, "relative" => {kind: "bool", type: "Bool", default: "false", description: {"--relative, -r", "If specified the URLs in the index.html will be in relative format"}, short: "r", long: "relative", is_required: true}, "skip_service_worker" => {kind: "bool", type: "Bool", default: "false", description: {"--skip-service-worker", "If specified the service worker functionality will be disabled"}, short: "nil", long: "skip-service-worker", 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}, "minify" => {kind: "bool", type: "Bool", default: "true", description: {"--minify, -m", "If specified the resulting JavaScript code will be minified"}, short: "m", long: "minify", is_required: true}, "runtime" => {kind: "nil", type: "String", default: "nil", description: {"--runtime", "Will use supplied runtime path instead of the default distribution"}, short: "nil", long: "runtime", 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? #

def inspect(io) #

[View source]
def minify #

[View source]
def relative #

[View source]
def runtime : String? #

[View source]
def skip_icons #

[View source]
def skip_service_worker #

[View source]
def validate!(command) #