Skip to content

unbundle has no unpack alias, and the suggester misdirects to pack #404

Description

@lancekrogers

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions