Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "docs", Short: "Print documentation for services", Run: Run, Args: func(cmd *cobra.Command, args []string) error { if showVersion, _ := cmd.Flags().GetBool("version"); showVersion { return nil } serviceList := strings.Join(services, ", ") cmd.SetUsageTemplate(cmd.UsageTemplate() + "\nAvailable services: \n " + serviceList + "\n") return cobra.MinimumNArgs(1)(cmd, args) }, ValidArgs: services, }
Cmd prints documentation for services
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.