tracker

package
v0.0.0-...-8130832 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default    = "\x1b[39m"
	ColorRed   = "\x1b[91m"
	ColorGreen = "\x1b[32m"
)
View Source
const (
	File = ".tracker.json"
)

Variables

This section is empty.

Functions

func Green

func Green(s string) string

func Red

func Red(s string) string

Types

type Bug

type Bug struct {
	ID        int
	What      string
	Steps     string
	Priority  int
	Created   time.Time
	Completed time.Time
	Solved    bool
	Related   rel
}

type Bugs

type Bugs []Bug

func (*Bugs) Add

func (t *Bugs) Add(ID int, what string, steps string, priority int, solved bool)

func (*Bugs) Edit

func (t *Bugs) Edit(ID int) error

func (*Bugs) Get

func (t *Bugs) Get(ID int) error

func (*Bugs) List

func (t *Bugs) List(tracker *Bugs, sorting string)

func (*Bugs) ListAll

func (t *Bugs) ListAll(tracker *Bugs, sorting string)

func (*Bugs) Load

func (t *Bugs) Load(filename string) error

func (*Bugs) Relate

func (t *Bugs) Relate(id int) error

func (*Bugs) Related

func (t *Bugs) Related(id int) error

func (*Bugs) Remove

func (t *Bugs) Remove(index int) error

func (*Bugs) Reopen

func (t *Bugs) Reopen(index int) error

func (*Bugs) Solve

func (t *Bugs) Solve(index int) error

func (*Bugs) Store

func (t *Bugs) Store(filename string) error

Jump to

Keyboard shortcuts

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