package cmd import ( "github.com/rsteube/carapace" "github.com/spf13/cobra" ) var infoCmd = &cobra.Command{ Use: "info [OPTIONS]", Short: "Display system-wide information", GroupID: "common", Run: func(cmd *cobra.Command, args []string) {}, } func init() { carapace.Gen(infoCmd).Standalone() infoCmd.Flags().StringP("format", "f", "", "Format the output using the given Go template") rootCmd.AddCommand(infoCmd) }