commands

package
v0.0.0-...-50b27ac Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 30 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 CoverageRequirements

type CoverageRequirements struct {
	Enabled  bool
	Percent  float64
	Packages []string
}

type Deadlines

type Deadlines []Group

func (Deadlines) FindTask

func (d Deadlines) FindTask(name string) (*Group, *Task)

func (Deadlines) Tasks

func (d Deadlines) Tasks() []*Task

type Group

type Group struct {
	Name     string `yaml:"group"`
	Start    string `yaml:"start"`
	Deadline string `yaml:"deadline"`
	Tasks    []Task `yaml:"tasks"`
}

func (Group) IsOpen

func (g Group) IsOpen() bool

type Task

type Task struct {
	Name  string   `yaml:"task"`
	Score int      `yaml:"score"`
	Watch []string `yaml:"watch"`
}

type TestFailedError

type TestFailedError struct {
	E error
}

func (*TestFailedError) Error

func (e *TestFailedError) Error() string

func (*TestFailedError) Unwrap

func (e *TestFailedError) Unwrap() error

Jump to

Keyboard shortcuts

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