cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ContestListOutputModel

type ContestListOutputModel struct {
	LoadCommand string
	Contests    []ContestListOutputModel_Contest
}

type ContestListOutputModel_Contest

type ContestListOutputModel_Contest struct {
	ID           string
	IDPadding    string
	Title        string
	TitlePadding string
	StartAt      time.Time
	EndAt        time.Time
}

type ContestOutputModel

type ContestOutputModel struct {
	ID         string
	RatedType  string
	Title      string
	StartAt    time.Time
	EndAt      time.Time
	TargetRate string
	Tasks      []ContestOutputModel_Task
}

type ContestOutputModel_Task

type ContestOutputModel_Task struct {
	Index        string
	IndexPadding string
	ID           string
	IDPadding    string
	Title        string
	TitlePadding string
	Score        string
	ScorePadding string
	TimeLimit    time.Duration
	Memory       int
}

type TaskOutputModel

type TaskOutputModel struct {
	Contest models.Contest
	Index   string
	Task    models.Task
}

type VersionOutputModel

type VersionOutputModel struct {
	Version     string
	CommitSHA   string
	Description string
	FlagsPkg    string
}

Jump to

Keyboard shortcuts

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