Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Dec 19, 2023
1 parent 5a3e370 commit 918e2db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/carapace/cmd/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var styleCmd = &cobra.Command{
Short: "",
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
if err := setStyle(args[1]); err != nil {
if err := setStyle(args[0]); err != nil {
fmt.Fprintln(cmd.ErrOrStderr(), err.Error())
}
},
Expand All @@ -23,6 +23,9 @@ var styleCmd = &cobra.Command{
func init() {
carapace.Gen(styleCmd).Standalone()

carapace.Gen(styleCmd).PositionalAnyCompletion(
carapace.ActionStyleConfig(),
)
}

func setStyle(s string) error {
Expand Down

0 comments on commit 918e2db

Please sign in to comment.