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:13
commands/test.cr:18
commands/test.cr:23
commands/test.cr:29
commands/test.cr:35
commands/test.cr:41
commands/test.cr:47

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}, "manual" => {kind: "bool", type: "Bool", default: "false", description: {"--manual, -m", "Start the test server for manual testing"}, short: "m", long: "manual", is_required: true}, "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}, "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}, "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. (Default: 127.0.0.1)"}, 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. (Default: 3001)"}, short: "p", long: "port", 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. (Default: 127.0.0.1)"}, 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. (Default: 3001)"}, short: "c", long: "browser-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)

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? #

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) #