struct Mint::Cli::SandboxServer::Flags
- Mint::Cli::SandboxServer::Flags
- Struct
- Value
- Object
Overview
Extend the flags struct to include the flag
Defined in:
commands/sandbox_server.cr:3commands/sandbox_server.cr:6
commands/sandbox_server.cr:12
commands/sandbox_server.cr:18
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}, "host" => {kind: "nil", type: "String", default: "ENV[\"HOST\"]? || \"0.0.0.0\"", description: {"--host, -h (default: ENV[\"HOST\"]? || \"0.0.0.0\")", "Change the host the server binds to. (Default: 0.0.0.0)"}, short: "h", long: "host", is_required: true}, "port" => {kind: "nil", type: "Int32", default: "(ENV[\"PORT\"]? || \"3003\").to_i", description: {"--port, -p (default: (ENV[\"PORT\"]? || \"3003\").to_i)", "Change the port the server binds to. (Default: 3003)"}, short: "p", long: "port", 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)