Documentation
¶
Overview ¶
Package compact provides terminal output functions for the compact command.
Index ¶
- func InfoArchivedTasks(cmd *cobra.Command, count int, archiveFile string, days int)
- func InfoMovingTask(cmd *cobra.Command, taskText string)
- func InfoSkippingTask(cmd *cobra.Command, taskText string)
- func ReportClean(cmd *cobra.Command)
- func ReportHeading(cmd *cobra.Command)
- func ReportSummary(cmd *cobra.Command, changes int)
- func SectionsRemoved(cmd *cobra.Command, removed int, fileName string)
- func TaskError(cmd *cobra.Command, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InfoArchivedTasks ¶
InfoArchivedTasks reports the number of tasks archived. Nil cmd is a no-op.
Parameters:
- cmd: Cobra command for output
- count: Number of tasks archived
- archiveFile: Path to the archive file
- days: Age threshold in days
func InfoMovingTask ¶
InfoMovingTask reports a completed task being moved. Nil cmd is a no-op.
Parameters:
- cmd: Cobra command for output
- taskText: Truncated task description
func InfoSkippingTask ¶
InfoSkippingTask reports a task skipped due to incomplete children. Nil cmd is a no-op.
Parameters:
- cmd: Cobra command for output
- taskText: Truncated task description
func ReportClean ¶
ReportClean prints the message shown when no changes were needed. Nil cmd is a no-op.
Parameters:
- cmd: Cobra command for output
func ReportHeading ¶
ReportHeading prints the compact report heading, separator, and blank line. Nil cmd is a no-op.
Parameters:
- cmd: Cobra command for output
func ReportSummary ¶
ReportSummary prints the final summary with total changes count. Nil cmd is a no-op.
Parameters:
- cmd: Cobra command for output
- changes: Total number of changes made
func SectionsRemoved ¶
SectionsRemoved prints the count of empty sections removed from a file. Nil cmd is a no-op.
Parameters:
- cmd: Cobra command for output
- removed: Number of sections removed
- fileName: Name of the file that was cleaned
Types ¶
This section is empty.