Documentation
¶
Overview ¶
Package complete implements the ctx task complete command.
It marks a task as completed in TASKS.md by number, partial text match, or full text.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
Cmd returns the "ctx complete" command for marking tasks as done.
Tasks can be specified by number, partial text match, or full text. The command updates TASKS.md by changing "- [ ]" to "- [x]".
Returns:
- *cobra.Command: Configured complete command
func CompleteTask ¶
CompleteTask finds a task in TASKS.md by number or text match and marks it complete by changing "- [ ]" to "- [x]".
Parameters:
- query: Task number (e.g. "1") or search text to match
- contextDir: Path to .context/ directory; if empty, uses rc.ContextDir()
Returns:
- string: The text of the completed task
- error: Non-nil if the task is not found, multiple matches, or file operations fail
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.