struct Mint::Cli::Test::Flags
- Mint::Cli::Test::Flags
- Struct
- Value
- Object
Overview
Extend the flags struct to include the flag
Defined in:
commands/test.cr:3commands/test.cr:8
commands/test.cr:11
commands/test.cr:16
commands/test.cr:21
commands/test.cr:26
commands/test.cr:30
commands/test.cr:35
commands/test.cr:40
commands/test.cr:44
commands/test.cr:49
commands/test.cr:54
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}, "browser" => {kind: "nil", type: "String", default: "\"chrome\"", description: {"--browser, -b (default: \"chrome\")", "Which browser to run the tests in (chrome, firefox)."}, short: "b", long: "browser", is_required: true}, "browser_host" => {kind: "nil", type: "String", default: "ENV[\"BROWSER_HOST\"]? || \"127.0.0.1\"", description: {"--browser-host, -x (default: ENV[\"BROWSER_HOST\"]? || \"127.0.0.1\")", "Target host, useful when hosted on another machine."}, short: "x", long: "browser-host", is_required: true}, "browser_port" => {kind: "nil", type: "Int32", default: "(ENV[\"BROWSER_PORT\"]? || \"3001\").to_i", description: {"--browser-port, -c (default: (ENV[\"BROWSER_PORT\"]? || \"3001\").to_i)", "Target port, useful when hosted on another machine."}, short: "c", long: "browser-port", 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}, "reporter" => {kind: "nil", type: "String", default: "\"dot\"", description: {"--reporter, -r (default: \"dot\")", "Which reporter to use (dot, documentation),"}, short: "r", long: "reporter", is_required: true}, "manual" => {kind: "bool", type: "Bool", default: "false", description: {"--manual, -m", "Start the test server for manual testing."}, short: "m", long: "manual", is_required: true}, "watch" => {kind: "bool", type: "Bool", default: "false", description: {"--watch, -w", "Watch files for changes and rerun tests."}, short: "w", long: "watch", 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\")", "Host to serve the tests on."}, short: "h", long: "host", is_required: true}, "port" => {kind: "nil", type: "Int32", default: "(ENV[\"PORT\"]? || \"3001\").to_i", description: {"--port, -p (default: (ENV[\"PORT\"]? || \"3001\").to_i)", "Port to serve the tests on."}, short: "p", long: "port", 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
- #__help__
- #browser
- #browser_host
- #browser_port
- #env : String?
- #generate_source_maps
- #host
- #inspect(io)
- #manual
- #port
- #reporter
- #runtime : String?
- #validate!(command)
- #watch