struct Mint::Cli::Start::Flags

Overview

Extend the flags struct to include the flag

Defined in:

commands/start.cr:3
commands/start.cr:8
commands/start.cr:13
commands/start.cr:19
commands/start.cr:25

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}, "auto_format" => {kind: "bool", type: "Bool", default: "false", description: {"--auto-format", "Auto formats the source files when running development server"}, short: "nil", long: "auto-format", is_required: true}, "host" => {kind: "nil", type: "String", default: "ENV[\"HOST\"]? || \"127.0.0.1\"", description: {"--host, -h (default: ENV[\"HOST\"]? || \"127.0.0.1\")", "Change the host to serve the application on. (Default: 127.0.0.1)"}, short: "h", long: "host", is_required: true}, "port" => {kind: "nil", type: "Int32", default: "(ENV[\"PORT\"]? || \"3000\").to_i", description: {"--port, -p (default: (ENV[\"PORT\"]? || \"3000\").to_i)", "Change the port to serve the application on. (Default: 3000)"}, short: "p", long: "port", is_required: true}, "live_reload" => {kind: "bool", type: "Bool", default: "true", description: {"--live-reload, -r", "Whether or not to reload the browser when something changes. (Default true)"}, short: "r", long: "live-reload", 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 auto_format #

[View source]
def env : String? #

def host #

[View source]
def inspect(io) #

[View source]
def live_reload #

[View source]
def port #

[View source]
def validate!(command) #