task

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNextID

func GetNextID(root string) (string, error)

GetNextID scans backlog and archive for the next available Task ID

func UpdateStatus

func UpdateStatus(path, newStatus string) error

UpdateStatus modifies the status field in a task file

Types

type Task

type Task struct {
	ID     string
	Title  string
	Status string
	Branch string
	Path   string
}

Task represents a task parsed from a markdown file

func Find

func Find(root, idOrPath string) (*Task, error)

Find locates a task by ID (or path) in backlog or archive

func ListArchive

func ListArchive(root string) ([]*Task, error)

ListArchive returns all tasks in the archive

func ListBacklog

func ListBacklog(root string) ([]*Task, error)

ListBacklog returns all tasks in the backlog

func Parse

func Parse(r io.Reader, filename string) (*Task, error)

Parse reads task data from a reader. filename is optional, used for ID extraction fallback.

func ParseFile

func ParseFile(path string) (*Task, error)

ParseFile reads a markdown file and extracts YAML frontmatter

Jump to

Keyboard shortcuts

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