task

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package task provides error constructors for task file operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileNotFound

func FileNotFound() error

FileNotFound returns an error when TASKS.md does not exist.

Returns:

  • error: "TASKS.md not found"

func FileRead

func FileRead(cause error) error

FileRead wraps a failure to read TASKS.md.

Parameters:

  • cause: the underlying read error

Returns:

  • error: "failed to read TASKS.md: <cause>"

func FileWrite

func FileWrite(cause error) error

FileWrite wraps a failure to write TASKS.md.

Parameters:

  • cause: the underlying write error

Returns:

  • error: "failed to write TASKS.md: <cause>"

func MultipleMatches

func MultipleMatches(query string) error

MultipleMatches returns an error when a query matches more than one task.

Parameters:

  • query: the search string that matched multiple tasks

Returns:

  • error: "multiple tasks match <query>; be more specific or use task number"

func NoMatch

func NoMatch(query string) error

NoMatch returns an error when no task matches the search query.

Parameters:

  • query: the search string that matched nothing.

Returns:

  • error: "no task matching \"<query>\" found"

func NoneCompleted

func NoneCompleted() error

NoneCompleted returns an error when there are no completed tasks to archive.

Returns:

  • error: "no completed tasks to archive"

func NoneSpecified

func NoneSpecified() error

NoneSpecified returns an error when no task query was provided.

Returns:

  • error: "no task specified"

func NotFound

func NotFound(query string) error

NotFound returns an error when no task matches the query.

Parameters:

  • query: the search string that matched nothing

Returns:

  • error: "no task matching <query> found"

func SnapshotWrite

func SnapshotWrite(cause error) error

SnapshotWrite wraps a failure to write a task snapshot file.

Parameters:

  • cause: the underlying OS error.

Returns:

  • error: "failed to write snapshot: <cause>"

Types

This section is empty.

Jump to

Keyboard shortcuts

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