task

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NonePriorityColor   = color.HEX("#C6C6C6").C256()
	LowPriorityColor    = color.HEX("#4772F9").C256()
	MediumPriorityColor = color.HEX("#FAA80B").C256()
	HighPriorityColor   = color.HEX("#D52B24").C256()
)
View Source
var PriorityCompletion = []cobra.Completion{
	cobra.CompletionWithDesc("none", "No task"),
	cobra.CompletionWithDesc("low", "Low task"),
	cobra.CompletionWithDesc("medium", "Medium task"),
	cobra.CompletionWithDesc("high", "High task"),
}

Functions

This section is empty.

Types

type Priority

type Priority int
const (
	PriorityNone   Priority = 0
	PriorityLow    Priority = 1
	PriorityMedium Priority = 3
	PriorityHigh   Priority = 5
)

func (Priority) MarshalJSON

func (p Priority) MarshalJSON() ([]byte, error)

func (*Priority) Set

func (p *Priority) Set(value string) error

func (Priority) String

func (p Priority) String() string

func (*Priority) Type

func (p *Priority) Type() string

func (*Priority) UnmarshalJSON

func (p *Priority) UnmarshalJSON(data []byte) error

type Status

type Status int
var (
	StatusNormal   Status = 0
	StatusComplete Status = 2
)

func (Status) MarshalJSON

func (s Status) MarshalJSON() ([]byte, error)

func (Status) String

func (s Status) String() string

func (*Status) UnmarshalJSON

func (s *Status) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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