Skip to content

Commit

Permalink
Merge pull request #3 from skilld-labs/addingalias
Browse files Browse the repository at this point in the history
Adding alias to plugin
  • Loading branch information
davidferlay authored Aug 9, 2024
2 parents 7f95205 + 4fc25c4 commit 027bb18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ func (p *Plugin) OnAppInit(_ launchr.App) error {
// CobraAddCommands implements launchr.CobraPlugin interface to provide bump functionality.
func (p *Plugin) CobraAddCommands(rootCmd *cobra.Command) error {
var depCmd = &cobra.Command{
Use: "dependencies",
Short: "Shows parent and child resources of resource",
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
Use: "dependencies",
Short: "Shows parent and child resources of resource",
Aliases: []string{"deps"},
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
RunE: func(cmd *cobra.Command, args []string) error {
// Don't show usage help on a runtime error.
cmd.SilenceUsage = true
Expand Down

0 comments on commit 027bb18

Please sign in to comment.