Skip to Content
kusaw docsv1.0.0
CLI reference

kusaw worktrees

Prune old run worktrees and stale locks

kusaw worktrees

Prune old run worktrees and stale locks

Usage

Text
kusaw worktrees [flags]

Flags

NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for worktrees

Subcommands

kusaw worktrees prune

Remove stale locks and old delivered or cancelled worktrees

Text
kusaw worktrees prune [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--dry-runboolfalseList actions without changing anything
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for prune

Example:

Text
kusaw worktrees prune --dry-run

Exit codes

CodeNameDescription
0okSuccess.
1errorRuntime error.
2usageUsage or validation error.
3rejectedControl request rejected; the error string is printed verbatim.
4not picked upControl request not picked up within the wait time while serve runs.

Example

Text
kusaw worktrees prune --dry-run

On this page