Skip to content

Commit

Permalink
caraparse: added completion
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Sep 24, 2022
1 parent 12cd77b commit 887f07e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/caraparse/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"sort"
"strings"

"github.com/rsteube/carapace"
"github.com/spf13/cobra"
)

Expand All @@ -32,6 +33,8 @@ func init() {
rootCmd.Flags().StringP("name", "n", "", "name of command")
rootCmd.Flags().StringP("parent", "p", "", "name of parent command")
rootCmd.Flags().StringP("short", "s", "", "short description of command")

carapace.Gen(rootCmd)
}

type Command struct {
Expand Down

0 comments on commit 887f07e

Please sign in to comment.