carapace-bin/git_completer/cmd/describe_generated.go
2020-04-20 22:58:56 +02:00

31 lines
1.4 KiB
Go

package cmd
import (
"github.com/spf13/cobra"
)
var describeCmd = &cobra.Command{
Use: "describe",
Short: "Give an object a human readable name based on an available ref",
Run: func(cmd *cobra.Command, args []string) {
},
}
func init() {
describeCmd.Flags().String("abbrev", "", "use <n> digits to display SHA-1s")
describeCmd.Flags().Bool("all", false, "use any ref")
describeCmd.Flags().Bool("always", false, "show abbreviated commit object as fallback")
describeCmd.Flags().String("broken", "", "append <mark> on broken working tree (default: \"-broken\")")
describeCmd.Flags().String("candidates", "", "consider <n> most recent tags (default: 10)")
describeCmd.Flags().Bool("contains", false, "find the tag that comes after the commit")
describeCmd.Flags().Bool("debug", false, "debug search strategy on stderr")
describeCmd.Flags().String("dirty", "", "append <mark> on dirty working tree (default: \"-dirty\")")
describeCmd.Flags().Bool("exact-match", false, "only output exact matches")
describeCmd.Flags().String("exclude", "", "do not consider tags matching <pattern>")
describeCmd.Flags().Bool("first-parent", false, "only follow first parent")
describeCmd.Flags().Bool("long", false, "always use long format")
describeCmd.Flags().String("match", "", "only consider tags matching <pattern>")
describeCmd.Flags().Bool("tags", false, "use any tag, even unannotated")
rootCmd.AddCommand(describeCmd)
}