Expand description
Utility functions for CLI handlers
Helper functions for reading stdin, formatting status badges, and printing task contexts.
Functions§
- get_
status_ badge - Get a status badge icon for task status (arrow style, used in
ie status) - merge_
metadata - Merge new metadata into existing metadata JSON string. Null values in new_meta mean “delete this key”.
- parse_
metadata - Parse metadata key=value strings into a JSON object. “key=value” sets a key, “key=” deletes a key.
- parse_
status_ keywords - Check if query is a status keyword combination (
todo,doing,done). ReturnsSome(statuses)if all words are valid status keywords,Noneotherwise. - parse_
task_ id_ query - Check if query is a
#IDformat (e.g.,"#123","#1"). ReturnsSome(id)if it is a task ID query,Noneotherwise. - print_
events_ summary - Print events summary (recent events with count)
- print_
task_ context - Print task context in a human-friendly tree format
- print_
task_ summary - Print a concise task summary
- print_
task_ tree - Print tasks in a hierarchical tree format
- read_
stdin - Read from stdin with proper encoding handling (especially for Windows PowerShell)
- status_
icon - Get a status icon for task status (bullet style, used in tree/list views)