Skip to content

Commit

Permalink
git: merge-index
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Aug 16, 2024
1 parent 4a70aa8 commit 86bf124
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 19 deletions.
29 changes: 29 additions & 0 deletions completers/git_completer/cmd/mergeIndex.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var mergeIndexCmd = &cobra.Command{
Use: "merge-index",
Short: "Run a merge for files needing merging",
Run: func(cmd *cobra.Command, args []string) {},
GroupID: groups[group_low_level_manipulator].ID,
}

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

mergeIndexCmd.Flags().BoolS("a", "a", false, "run merge against all files in the index that need merging")
mergeIndexCmd.Flags().BoolS("o", "o", false, "instead of stopping at the first failed merge, do all of them in one shot")
mergeIndexCmd.Flags().BoolS("q", "q", false, "do not complain about a failed merge program")
rootCmd.AddCommand(mergeIndexCmd)

carapace.Gen(mergeIndexCmd).PositionalCompletion(
carapace.Batch(
carapace.ActionExecutables(),
carapace.ActionFiles(),
).ToA(),
)
}
19 changes: 0 additions & 19 deletions completers/git_completer/cmd/merge_index_generated.go

This file was deleted.

0 comments on commit 86bf124

Please sign in to comment.