Skip to main content

Module commands

Module commands 

Source
Expand description

Command handlers — one submodule per CLI subcommand.

Each submodule exposes a single public execute function that accepts a Storage reference and the arguments parsed by clap. Commands are intentionally thin: they validate input, delegate business logic to models, and persist changes through the storage layer.

SubmoduleSubcommand
addtodo add
cleartodo clear
clear_recurtodo norecur <ID> (remove recurrence)
depstodo deps <ID>
donetodo done <ID>
edittodo edit <ID>
infotodo info
listtodo list
projectstodo projects
recurtodo recur <ID>
removetodo remove <ID>
searchtodo search <QUERY>
statstodo stats
tagstodo tags
undonetodo undone <ID>

Modules§

add
Handler for todo add.
clear
Handler for todo clear.
clear_recur
Handler for todo norecur <ID>.
deps
Handler for todo deps <ID>.
done
Handler for todo done <ID>.
edit
Handler for todo edit <ID>.
info
Handler for todo info.
list
Handler for todo list.
projects
Handler for todo projects.
recur
Handler for todo recur <ID> <PATTERN>.
remove
Handler for todo remove <ID>.
search
Handler for todo search <QUERY>.
stats
Handler for todo stats.
tags
Handler for todo tags.
undone
Handler for todo undone <ID>.