Documentation ¶
Overview ¶
Package flags contains cobra CLI stuff
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Generate = func() *cobra.Command { enumName := must(newRegexp("^.+Enum$")) cmd := &cobra.Command{ Use: "generate package [package...]", DisableFlagsInUseLine: true, Short: "read sources and generate the code", Run: func(cmd *cobra.Command, args []string) { generateRun(cmd, args, enumName) }, Args: cobra.MinimumNArgs(1), } cmd.Flags().StringArray(buildTagsFlag, nil, "build tags to be used for sources parsing") cmd.Flags().StringArray(envVarsFlag, nil, "environment variables to be used for sources parsing") cmd.Flags().Bool(excludeTestsFlag, false, "do not process test files") cmd.Flags().Var(enumName, enumNameFlag, "regexp to find the Name type(s)") return cmd }()
Generate is a generate CLI command.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.