prune

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 prune provides terminal output functions for the prune command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PruneDryRunLine

func PruneDryRunLine(cmd *cobra.Command, name, age string)

PruneDryRunLine prints a single dry-run prune candidate.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • name: file name being considered for pruning.
  • age: human-readable age string.

func PruneErrorLine

func PruneErrorLine(cmd *cobra.Command, name string, err error)

PruneErrorLine prints an error encountered while removing a file.

Parameters:

  • cmd: Cobra command for error output. Nil is a no-op.
  • name: file name that failed to remove.
  • err: the removal error.

func PruneSummary

func PruneSummary(cmd *cobra.Command, dryRun bool, pruned, skipped, preserved int)

PruneSummary prints the prune results summary.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • dryRun: whether this was a dry-run invocation.
  • pruned: number of files pruned (or would be pruned).
  • skipped: number of files skipped (too recent).
  • preserved: number of global files preserved.

Types

This section is empty.

Jump to

Keyboard shortcuts

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