pack's inverse is unbundle, so unpack is a natural miss. Today that miss is worse than a plain "unknown command":
$ fest unpack --help
Error: unknown command "unpack" for "fest"
Did you mean this?
pack
Cobra suggests pack — the opposite operation. Someone trying to extract a bundle is pointed at the command that creates one.
Fix
Add an alias to the unbundle command:
Aliases: []string{"unpack"},
Both CLIs have the same bug and the same fix:
fest: internal/commands/pack/pack.go:116
camp: cmd/camp/pack/unbundle.go:17
Non-breaking — unbundle keeps working, and the suggester starts resolving unpack correctly instead of misdirecting.
Not proposing a rename
pack/unbundle is asymmetric; pack/unpack or bundle/unbundle would be coherent. But renaming breaks two published CLIs and the docs site. The alias gets the practical benefit for none of the cost.
pack's inverse isunbundle, sounpackis a natural miss. Today that miss is worse than a plain "unknown command":Cobra suggests
pack— the opposite operation. Someone trying to extract a bundle is pointed at the command that creates one.Fix
Add an alias to the unbundle command:
Both CLIs have the same bug and the same fix:
fest:internal/commands/pack/pack.go:116camp:cmd/camp/pack/unbundle.go:17Non-breaking —
unbundlekeeps working, and the suggester starts resolvingunpackcorrectly instead of misdirecting.Not proposing a rename
pack/unbundleis asymmetric;pack/unpackorbundle/unbundlewould be coherent. But renaming breaks two published CLIs and the docs site. The alias gets the practical benefit for none of the cost.