struct OIJ::CLI::GenerateHackCase::Arguments

Included Modules

Defined in:

oij.cr:245
oij.cr:247
oij.cr:248
oij.cr:249

Constant Summary

SPECS = {"hack" => {type: "Path", description: {"hack (required)", "Specify your wrong solution."}, default: "nil", is_required: true}, "generator" => {type: "Path", description: {"generator (required)", "Specify program to generate test cases."}, default: "nil", is_required: true}, "solver" => {type: "Path", description: {"solver (required)", "Specify program to generate correct answers."}, default: "nil", is_required: true}} of String => NamedTuple(type: String, description: Tuple(String, String | ::Nil), default: String, is_required: Bool)

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def [](*args, **options) #

def [](*args, **options, &) #

def each(*args, **options) #

def each(*args, **options, &) #

def exists?(name : Symbol) #

def generator : Path #

[View source]
def get(name : Symbol) #

def get?(name : Symbol) #

def hack : Path #

[View source]
def inspect(io) #

[View source]
def rest : Array(String) #

def solver : Path #

[View source]
def validate!(command : Admiral::Command) #

def value_from_spec(command : Admiral::Command, *, arg : String, type, default, is_required : Bool) #

[View source]