compact

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package compact provides terminal output functions for the compact command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InfoArchivedTasks

func InfoArchivedTasks(
	cmd *cobra.Command, count int, archiveFile string, days int,
)

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

func InfoMovingTask(cmd *cobra.Command, taskText string)

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

func InfoSkippingTask(cmd *cobra.Command, taskText string)

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

func ReportClean(cmd *cobra.Command)

ReportClean prints the message shown when no changes were needed. Nil cmd is a no-op.

Parameters:

  • cmd: Cobra command for output

func ReportHeading

func ReportHeading(cmd *cobra.Command)

ReportHeading prints the compact report heading, separator, and blank line. Nil cmd is a no-op.

Parameters:

  • cmd: Cobra command for output

func ReportSummary

func ReportSummary(cmd *cobra.Command, changes int)

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

func SectionsRemoved(cmd *cobra.Command, removed int, fileName string)

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

func TaskError

func TaskError(cmd *cobra.Command, err error)

TaskError prints a task processing error line. Nil cmd is a no-op.

Parameters:

  • cmd: Cobra command for output
  • err: The error encountered during task processing

Types

This section is empty.

Jump to

Keyboard shortcuts

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