cmd

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2022 License: GPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const ContestRegStr = `\d+`

ContestRegStr contest

View Source
const ProblemRegStr = `\w+`

ProblemRegStr problem

View Source
const StrictProblemRegStr = `[a-zA-Z]+\d*`

StrictProblemRegStr strict problem

Variables

View Source
var ArgTypePathRegStr = [...]string{
	fmt.Sprintf("%v/%v/((?P<contestID>%v)/((?P<problemID>%v)/)?)?", "%v", "%v", ContestRegStr, ProblemRegStr),
	fmt.Sprintf("%v/%v/((?P<contestID>%v)/((?P<problemID>%v)/)?)?", "%v", "%v", ContestRegStr, ProblemRegStr),
	fmt.Sprintf("%v/%v/((?P<problemID>%v)/)?", "%v", "%v", ProblemRegStr),
}

ArgTypePathRegStr path

Functions

func Execute

func Execute() error

func Gen

func Gen() (err error)

func List

func List() (err error)

func Parse

func Parse() (err error)

func ParseArgs

func ParseArgs() error

func Race

func Race() (err error)

func Schedule

func Schedule() error

func Submit

func Submit() (err error)

func Test

func Test() (err error)

Test command

Types

type CodeList

type CodeList struct {
	Name  string
	Index []int
}

CodeList Name matches some template suffix, index are template array indexes

type ParSeArgs

type ParSeArgs struct {
	Info client.Info
}
var Args ParSeArgs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL