mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
23 lines
727 B
Go
23 lines
727 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var symbolic_refCmd = &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(symbolic_refCmd).Standalone()
|
|
symbolic_refCmd.Flags().BoolP("delete", "d", false, "delete symbolic ref")
|
|
symbolic_refCmd.Flags().StringS("m", "m", "", "reason of the update")
|
|
symbolic_refCmd.Flags().BoolP("quiet", "q", false, "suppress error message for non-symbolic (detached) refs")
|
|
symbolic_refCmd.Flags().Bool("short", false, "shorten ref output")
|
|
rootCmd.AddCommand(symbolic_refCmd)
|
|
}
|