Skip to content

Commit

Permalink
git: symbolic-ref
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Aug 17, 2024
1 parent dedc12d commit 09199c9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
25 changes: 25 additions & 0 deletions completers/git_completer/cmd/symbolicRef.go
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)
}
22 changes: 0 additions & 22 deletions completers/git_completer/cmd/symbolic_ref_generated.go

This file was deleted.

0 comments on commit 09199c9

Please sign in to comment.