struct NCTU::OJ::Scoreboard::Flags

Overview

Extend the flags struct to include the flag

Defined in:

commands/scoreboard.cr:1
commands/scoreboard.cr:4
commands/scoreboard.cr:5
commands/scoreboard.cr:6
commands/scoreboard.cr:7

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}, "output" => {kind: "nil", type: "String", default: "\"scoreboard.html\"", description: {"--output, -o (default: \"scoreboard.html\")", "Output filename"}, short: "o", long: "output", is_required: true}, "judge" => {kind: "nil", type: "String", default: "\"pass\"", description: {"--judge, -j (default: \"pass\")", "Judge type (must be pass or score)"}, short: "j", long: "judge", is_required: true}, "message" => {kind: "nil", type: "String", default: "nil", description: {"--message, -m", "The message on the top of scoreboard"}, short: "m", long: "message", is_required: false}, "refresh" => {kind: "nil", type: "Int64", default: "nil", description: {"--refresh, -r", "Auto refreshing period"}, short: "r", long: "refresh", 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 inspect(io) #

[View source]
def judge #

[View source]
def message : String? #

[View source]
def output #

[View source]
def refresh : Int64? #

[View source]
def validate!(command) #