Documentation
¶
Index ¶
- Constants
- func AddCSharpGenerateFlags(cmd *cobra.Command)
- func AddGenerateFlags(cmd *cobra.Command)
- func AddGoGenerateFlags(cmd *cobra.Command)
- func AddInitFlags(cmd *cobra.Command)
- func AddJavaGenerateFlags(cmd *cobra.Command)
- func AddPullFlags(cmd *cobra.Command)
- func AddRootFlags(cmd *cobra.Command)
- func GetAuthToken(cmd *cobra.Command) string
- func GetCSharpNamespace(cmd *cobra.Command) string
- func GetFlagSourceUrl(cmd *cobra.Command) string
- func GetGoPackageName(cmd *cobra.Command) string
- func GetJavaPackageName(cmd *cobra.Command) string
- func GetManifestPath(cmd *cobra.Command) string
- func GetNoInput(cmd *cobra.Command) bool
- func GetNoPrompt(cmd *cobra.Command) bool
- func GetOutputPath(cmd *cobra.Command) string
- func GetOverride(cmd *cobra.Command) bool
Constants ¶
const ( DebugFlagName = "debug" ManifestFlagName = "manifest" OutputFlagName = "output" NoInputFlagName = "no-input" GoPackageFlagName = "package-name" CSharpNamespaceName = "namespace" OverrideFlagName = "override" JavaPackageFlagName = "package-name" FlagSourceUrlFlagName = "flag-source-url" AuthTokenFlagName = "auth-token" NoPromptFlagName = "no-prompt" )
Flag name constants to avoid duplication
const ( DefaultManifestPath = "flags.json" DefaultOutputPath = "" DefaultGoPackageName = "openfeature" DefaultCSharpNamespace = "OpenFeature" DefaultJavaPackageName = "com.example.openfeature" )
Default values for flags
Variables ¶
This section is empty.
Functions ¶
func AddCSharpGenerateFlags ¶ added in v0.3.3
AddCSharpGenerateFlags adds the C# generator specific flags to the given command
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 AddJavaGenerateFlags ¶ added in v0.3.4
AddJavaGenerateFlags adds the Java generator specific flags to the given command
func AddPullFlags ¶ added in v0.3.6
AddPullFlags adds the pull command specific flags
func AddRootFlags ¶
AddRootFlags adds the common flags to the given command
func GetAuthToken ¶ added in v0.3.6
GetAuthToken gets the auth token from the given command
func GetCSharpNamespace ¶ added in v0.3.3
GetCSharpNamespace gets the C# namespace from the given command
func GetFlagSourceUrl ¶ added in v0.3.6
GetFlagSourceUrl gets the flag source URL from the given command
func GetGoPackageName ¶
GetGoPackageName gets the Go package name from the given command
func GetJavaPackageName ¶ added in v0.3.4
GetJavaPackageName gets the Java 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 GetNoPrompt ¶ added in v0.3.6
GetNoPrompt gets the no-prompt 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.