Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Command aliases? #157

Closed
SeekingMeaning opened this issue Jul 2, 2020 · 2 comments · Fixed by #158
Closed

Command aliases? #157

SeekingMeaning opened this issue Jul 2, 2020 · 2 comments · Fixed by #158
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@SeekingMeaning
Copy link
Contributor

For example, gofish remove and gofish rm would be the same as gofish uninstall

@bacongobbler
Copy link
Contributor

Should be very easy to implement. Cobra has built-in support for command aliases.

https://godoc.org/github.com/spf13/cobra#Command

@bacongobbler bacongobbler added enhancement New feature or request good first issue Good for newcomers labels Jul 2, 2020
@bacongobbler
Copy link
Contributor

cmd := &cobra.Command{
Use: "uninstall <food>",
Short: "uninstall fish food",
Args: cobra.ExactArgs(1),

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants