-
-
Notifications
You must be signed in to change notification settings - Fork 52
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 #2500 from carapace-sh/git-symbolic-ref
git: symbolic-ref
- Loading branch information
Showing
2 changed files
with
25 additions
and
22 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,25 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/carapace-sh/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var symbolicRefCmd = &cobra.Command{ | ||
Use: "symbolic-ref", | ||
Short: "Read, modify and delete symbolic refs", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
GroupID: groups[group_low_level_manipulator].ID, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(symbolicRefCmd).Standalone() | ||
|
||
symbolicRefCmd.Flags().BoolP("delete", "d", false, "delete the symbolicRef <name>") | ||
symbolicRefCmd.Flags().StringS("m", "m", "", "update the reflog for <name> with <reason>") | ||
symbolicRefCmd.Flags().Bool("no-recurse", false, "stop after dereferencing single level of symbolic ref") | ||
symbolicRefCmd.Flags().BoolP("quiet", "q", false, "do not issue an error message if the <name> is not a symbolicRef") | ||
symbolicRefCmd.Flags().Bool("recurse", false, "follow symbolicReferences") | ||
symbolicRefCmd.Flags().Bool("short", false, "try to shorten the symbolicRef") | ||
rootCmd.AddCommand(symbolicRefCmd) | ||
} |
This file was deleted.
Oops, something went wrong.