-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2495 from carapace-sh/git-merge-index
git: merge-index
- Loading branch information
Showing
2 changed files
with
29 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(), | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.