config

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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

func AddCSharpGenerateFlags(cmd *cobra.Command)

AddCSharpGenerateFlags adds the C# generator specific flags to the given command

func AddGenerateFlags

func AddGenerateFlags(cmd *cobra.Command)

AddGenerateFlags adds the common generate flags to the given command

func AddGoGenerateFlags

func AddGoGenerateFlags(cmd *cobra.Command)

AddGoGenerateFlags adds the go generator specific flags to the given command

func AddInitFlags

func AddInitFlags(cmd *cobra.Command)

AddInitFlags adds the init command specific flags

func AddJavaGenerateFlags added in v0.3.4

func AddJavaGenerateFlags(cmd *cobra.Command)

AddJavaGenerateFlags adds the Java generator specific flags to the given command

func AddPullFlags added in v0.3.6

func AddPullFlags(cmd *cobra.Command)

AddPullFlags adds the pull command specific flags

func AddRootFlags

func AddRootFlags(cmd *cobra.Command)

AddRootFlags adds the common flags to the given command

func GetAuthToken added in v0.3.6

func GetAuthToken(cmd *cobra.Command) string

GetAuthToken gets the auth token from the given command

func GetCSharpNamespace added in v0.3.3

func GetCSharpNamespace(cmd *cobra.Command) string

GetCSharpNamespace gets the C# namespace from the given command

func GetFlagSourceUrl added in v0.3.6

func GetFlagSourceUrl(cmd *cobra.Command) string

GetFlagSourceUrl gets the flag source URL from the given command

func GetGoPackageName

func GetGoPackageName(cmd *cobra.Command) string

GetGoPackageName gets the Go package name from the given command

func GetJavaPackageName added in v0.3.4

func GetJavaPackageName(cmd *cobra.Command) string

GetJavaPackageName gets the Java package name from the given command

func GetManifestPath

func GetManifestPath(cmd *cobra.Command) string

GetManifestPath gets the manifest path from the given command

func GetNoInput

func GetNoInput(cmd *cobra.Command) bool

GetNoInput gets the no-input flag from the given command

func GetNoPrompt added in v0.3.6

func GetNoPrompt(cmd *cobra.Command) bool

GetNoPrompt gets the no-prompt flag from the given command

func GetOutputPath

func GetOutputPath(cmd *cobra.Command) string

GetOutputPath gets the output path from the given command

func GetOverride

func GetOverride(cmd *cobra.Command) bool

GetOverride gets the override flag from the given command

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL