tasks

package
v0.0.0-...-439fad6 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	Title       string    `yaml:"title"`
	Description string    `yaml:"description"`
	Directory   string    `yaml:"directory"`
	Created     time.Time `yaml:"created"`
	Modified    time.Time `yaml:"modified"`
	Finished    time.Time `yaml:"finished"`
	Progress    int       `yaml:"progress"`
	Done        bool      `yaml:"done"`
	// contains filtered or unexported fields
}

func NewTask

func NewTask(title string) (t *Task, err error)

NewTask creates a new task object for a given title.

func (*Task) ClearUIText

func (t *Task) ClearUIText()

func (*Task) GetUIText

func (t *Task) GetUIText() string

func (*Task) RenderUIText

func (t *Task) RenderUIText(path string) (err error)

func (*Task) SetDescription

func (t *Task) SetDescription(desc string) (err error)

SetDescription sets the description of the task.

func (*Task) SetDirectory

func (t *Task) SetDirectory(path string) (err error)

SetDirectory checks and initializes the given path.

func (*Task) SetTitle

func (t *Task) SetTitle(title string) (err error)

SetTitle sets the task title and initializes a directory name based on the title.

Jump to

Keyboard shortcuts

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