taskops

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

type Operator struct {
	// contains filtered or unexported fields
}

Operator centralizes every mutation to tinyTasks.md through the shared TaskManager.

func New

func New(manager *tasks.TaskManager, service *tasks.Service) *Operator

New creates an Operator that uses manager for file mutations and service to sync memory.

func (*Operator) Add

func (o *Operator) Add(def tasks.TaskDefinition) (*tasks.Task, error)

Add wraps TaskManager.AddTask and synchronizes memory afterwards.

func (*Operator) Complete

func (o *Operator) Complete(taskID string) (*tasks.Task, error)

Complete marks every checkbox within a task as done and syncs memory.

func (*Operator) List

func (o *Operator) List() ([]*tasks.Task, error)

List returns the parsed tasks in file order.

func (*Operator) Update

func (o *Operator) Update(taskID string, update tasks.TaskUpdate) (*tasks.Task, error)

Update wraps TaskManager.UpdateTask and synchronizes memory afterwards.

Jump to

Keyboard shortcuts

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