mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
26 lines
861 B
Go
26 lines
861 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var helpCmd = &cobra.Command{
|
|
Use: "help",
|
|
Short: "Display help information about Git",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_interrogator].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(helpCmd).Standalone()
|
|
helpCmd.Flags().BoolP("all", "a", false, "print all available commands")
|
|
helpCmd.Flags().BoolP("config", "c", false, "print all configuration variable names")
|
|
helpCmd.Flags().BoolP("guides", "g", false, "print list of useful guides")
|
|
helpCmd.Flags().BoolP("info", "i", false, "show info page")
|
|
helpCmd.Flags().BoolP("man", "m", false, "show man page")
|
|
helpCmd.Flags().BoolP("verbose", "v", false, "print command description")
|
|
helpCmd.Flags().BoolP("web", "w", false, "show manual in web browser")
|
|
rootCmd.AddCommand(helpCmd)
|
|
}
|