Skip to content

Commit 9bada6a

Browse files
committed
Allow any branchname with 'fix'
1 parent afb88ea commit 9bada6a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

internal/command/fix.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import "github.com/spf13/cobra"
44

55
func init() {
66
fixCmd := &cobra.Command{
7-
Use: "fix [<branch> <base>]",
8-
Args: validBranchNames(stacker, 0, 2),
7+
Use: "fix [<branch> <base>]",
8+
// TODO: re-enable validation, add completion
9+
Args: cobra.RangeArgs(0, 2), // validBranchNames(stacker, 0, 2),
10+
//ValidArgsFunction: nil,
911
RunE: func(cmd *cobra.Command, args []string) error {
1012
return stacker.Fix(cmd.Context(), args...)
1113
},

0 commit comments

Comments
 (0)