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 ¶
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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.