config

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
	ProviderURLFlagName   = "provider-url"
	FlagSourceUrlFlagName = "flag-source-url" // Deprecated: use ProviderFlagName instead
	AuthTokenFlagName     = "auth-token"
	NoPromptFlagName      = "no-prompt"
	DryRunFlagName        = "dry-run"
	TypeFlagName          = "type"
	DefaultValueFlagName  = "default-value"
	DescriptionFlagName   = "description"
)

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 AddManifestAddFlags added in v0.3.7

func AddManifestAddFlags(cmd *cobra.Command)

AddManifestAddFlags adds the manifest add command specific flags

func AddManifestListFlags added in v0.3.7

func AddManifestListFlags(cmd *cobra.Command)

AddManifestListFlags adds the manifest list command specific flags

func AddPullFlags added in v0.3.6

func AddPullFlags(cmd *cobra.Command)

AddPullFlags adds the pull command specific flags

func AddPushFlags added in v0.3.10

func AddPushFlags(cmd *cobra.Command)

AddPushFlags adds the push 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 GetDryRun added in v0.3.10

func GetDryRun(cmd *cobra.Command) bool

GetDryRun gets the dry-run flag 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 It checks the new --provider-url flag first, then falls back to the deprecated --flag-source-url flag for backward compatibility. Finally, it checks the config file for both keys.

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

func ShouldDisableInteractivePrompts added in v0.3.7

func ShouldDisableInteractivePrompts(cmd *cobra.Command) bool

ShouldDisableInteractivePrompts returns true if interactive prompts should be disabled This happens when: - The --no-input flag is set, OR - stdin is not a terminal (e.g., in tests, CI, or when input is piped)

Types

This section is empty.

Jump to

Keyboard shortcuts

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