Documentation
¶
Index ¶
Constants ¶
View Source
const ContestRegStr = `[^\s/]+`
ContestRegStr contest
View Source
const ProblemRegStr = `[^\s/]+`
ProblemRegStr problem
Variables ¶
View Source
var ArgRegStr = [...]string{ fmt.Sprintf(`/contests/(%v)(/tasks/(%v))?`, ContestRegStr, ProblemRegStr), }
ArgRegStr for parsing arg
View Source
var ArgType = [...]string{
"contest",
"",
}
ArgType type
View Source
var ArgTypePathRegStr = [...]string{ fmt.Sprintf(`/contest/(%v)(/(%v))?`, ContestRegStr, ProblemRegStr), }
ArgTypePathRegStr path
Functions ¶
Types ¶
type ParsedArgs ¶
type ParsedArgs struct { Info client.Info File string Specifier []string `docopt:"<specifier>"` Alias string `docopt:"<alias>"` Username string `docopt:"<username>"` Version string `docopt:"{version}"` Config bool `docopt:"config"` Submit bool `docopt:"submit"` Parse bool `docopt:"parse"` Gen bool `docopt:"gen"` Test bool `docopt:"test"` Open bool `docopt:"open"` }
ParsedArgs parsed arguments
var Args *ParsedArgs
Args global variable
Source Files
¶
Click to show internal directories.
Click to hide internal directories.