Documentation
¶
Index ¶
- Constants
- func AddGenerateFlags(cmd *cobra.Command)
- func AddGoGenerateFlags(cmd *cobra.Command)
- func AddInitFlags(cmd *cobra.Command)
- func AddRootFlags(cmd *cobra.Command)
- func GetGoPackageName(cmd *cobra.Command) string
- func GetManifestPath(cmd *cobra.Command) string
- func GetNoInput(cmd *cobra.Command) bool
- func GetOutputPath(cmd *cobra.Command) string
- func GetOverride(cmd *cobra.Command) bool
Constants ¶
View Source
const ( ManifestFlagName = "manifest" OutputFlagName = "output" NoInputFlagName = "no-input" GoPackageFlagName = "package-name" OverrideFlagName = "override" )
Flag name constants to avoid duplication
View Source
const ( DefaultManifestPath = "flags.json" DefaultOutputPath = "" DefaultGoPackageName = "openfeature" )
Default values for flags
Variables ¶
This section is empty.
Functions ¶
func AddGenerateFlags ¶
AddGenerateFlags adds the common generate flags to the given command
func AddGoGenerateFlags ¶
AddGoGenerateFlags adds the go generator specific flags to the given command
func AddInitFlags ¶
AddInitFlags adds the init command specific flags
func AddRootFlags ¶
AddRootFlags adds the common flags to the given command
func GetGoPackageName ¶
GetGoPackageName gets the Go package name from the given command
func GetManifestPath ¶
GetManifestPath gets the manifest path from the given command
func GetNoInput ¶
GetNoInput gets the no-input flag from the given command
func GetOutputPath ¶
GetOutputPath gets the output path from the given command
func GetOverride ¶
GetOverride gets the override flag from the given command
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.