Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Dec 17, 2023
1 parent 3fc3172 commit 08e407d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/carapace/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import (
)

var runCmd = &cobra.Command{
Use: "run",
Short: "",
Args: cobra.MinimumNArgs(1),
Use: "run",
Short: "",
Args: cobra.MinimumNArgs(1),
DisableFlagParsing: true,
Run: func(cmd *cobra.Command, args []string) {
_, spec, err := loadSpec(args[0])
if err != nil {
Expand All @@ -21,7 +22,7 @@ var runCmd = &cobra.Command{

specCmd := spec.ToCobra()

specCmd.SetArgs(args[2:])
specCmd.SetArgs(args[1:])
specCmd.Execute() // TODO handle error?
},
}
Expand Down

0 comments on commit 08e407d

Please sign in to comment.