Skip to content

Commit

Permalink
jj: added parallelize
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Apr 30, 2024
1 parent a33692f commit b11da2a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions completers/jj_completer/cmd/parallelize.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/jj"
"github.com/spf13/cobra"
)

var parallelizeCmd = &cobra.Command{
Use: "parallelize [OPTIONS] [REVISIONS]..",
Short: "Parallelize revisions by making them siblings",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(parallelizeCmd).Standalone()

parallelizeCmd.Flags().BoolP("help", "h", false, "Print help (see more with '--help')")
rootCmd.AddCommand(parallelizeCmd)

carapace.Gen(parallelizeCmd).PositionalAnyCompletion(
jj.ActionRevSets(jj.RevOption{}.Default()),
)
}

0 comments on commit b11da2a

Please sign in to comment.