log

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package log contains quest todo command handlers.

It defines the "quest log" command tree and the behavior for creating, listing, editing, completing, deleting, and nuking todos.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cli.Command

Command returns the top-level "log" command and all nested subcommands.

func CreateCmd

func CreateCmd() *cli.Command

CreateCmd builds the CLI command that creates a new todo item.

func DeleteCmd

func DeleteCmd() *cli.Command

DeleteCmd builds the CLI command that soft-deletes a todo by ID.

func DoneCmd

func DoneCmd() *cli.Command

DoneCmd builds the CLI command that marks a todo as completed.

func EditCmd

func EditCmd() *cli.Command

EditCmd builds the CLI command that updates fields on an existing todo.

func ListCmd

func ListCmd() *cli.Command

ListCmd builds the CLI command that lists todos with optional filters.

func NukeCmd

func NukeCmd() *cli.Command

NukeCmd builds the CLI command that removes the entire todo store file.

Types

type CreateOptions

type CreateOptions struct {
	Title   string
	Due     string
	Project string
}

CreateOptions contains user-provided values used to create a new todo.

type EditOptions

type EditOptions struct {
	ID       string
	Title    *string
	Due      *string
	Project  *string
	ClearDue bool
	Done     bool
	Undone   bool
}

EditOptions defines mutable fields and state flags for editing an existing todo.

type ListOptions

type ListOptions struct {
	ShowAll       bool
	ShowDone      bool
	Today         bool
	Week          bool
	Month         bool
	Overdue       bool
	ProjectFilter string
}

ListOptions controls how todos are filtered and displayed by the list command.

Jump to

Keyboard shortcuts

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