struct

Mint::Cli::Build::Flags

Inherits Struct < Value < Object

Extend the flags struct to include the flag

Constants

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}, "generate_source_maps" => {kind: "bool", type: "Bool", default: "false", description: {"--generate-source-maps", "If specified, source maps will be generated."}, short: "nil", long: "generate-source-maps", 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}, "hash_routing" => {kind: "bool", type: "Bool", default: "false", description: {"--hash-routing", "If specified, the hash routing will be used."}, short: "nil", long: "hash-routing", 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}, "export" => {kind: "enum", type: "Array(String)", default: "[] of String", description: {"--export (default: [] of String)", "The entities to export in the generated bundle."}, short: "nil", long: "export", 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

new(command : Admiral::Command)

Instance methods

__help__
export
Source
generate_manifest
Source
generate_source_maps
Source
hash_routing
Source
inspect(io)
Source
no_optimize
Source
runtime
Source
skip_icons
Source
timings
Source
validate!(command)
verbose
Source
watch
Source