carapace-bin/completers/git_completer/cmd/update_ref_generated.go
rsteube b9b0ee9708 fix shorthand only flags
sed magic on flags where shorthand only wasn't yet supported
2020-10-24 00:05:14 +02:00

23 lines
729 B
Go

package cmd
import (
"github.com/spf13/cobra"
)
var update_refCmd = &cobra.Command{
Use: "update-ref",
Short: "Update the object name stored in a ref safely",
Run: func(cmd *cobra.Command, args []string) {
},
}
func init() {
update_refCmd.Flags().Bool("create-reflog", false, "create a reflog")
update_refCmd.Flags().BoolS("d", "d", false, "delete the reference")
update_refCmd.Flags().StringS("m", "m", "", "reason of the update")
update_refCmd.Flags().Bool("no-deref", false, "update <refname> not the one it points to")
update_refCmd.Flags().Bool("stdin", false, "read updates from stdin")
update_refCmd.Flags().BoolS("z", "z", false, "stdin has NUL-terminated arguments")
rootCmd.AddCommand(update_refCmd)
}