struct Mint::Cli::Test::Flags

Overview

Extend the flags struct to include the flag

Defined in:

commands/test.cr:3
commands/test.cr:8
commands/test.cr:11
commands/test.cr:16
commands/test.cr:21
commands/test.cr:26
commands/test.cr:31
commands/test.cr:36
commands/test.cr:39
commands/test.cr:44
commands/test.cr:49

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}, "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", "Watch files for changes and rerun tests."}, short: "nil", 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

Constructor Detail

def self.new(command : Admiral::Command) #

Instance Method Detail

def __help__ #

def browser #

[View source]
def browser_host #

[View source]
def browser_port #

[View source]
def env : String? #

[View source]
def host #

[View source]
def inspect(io) #

[View source]
def manual #

[View source]
def port #

[View source]
def reporter #

[View source]
def runtime : String? #

[View source]
def validate!(command) #

def watch #

[View source]