Documentation ¶
Index ¶
- func Edit(targetPath string) error
- func IsInteractive() bool
- func RequestBump(message string, currentVersion semver.Version) (semver.Bump, *semver.Version)
- func RequestChoice(message string, options ...string) string
- func RequestChoiceIfEmpty(defaultValue string, message string, options ...string) string
- func RequestConfirmFromUser(label string, args ...interface{}) bool
- func RequestMultiChoice(message string, options []string) []string
- func RequestMultiChoiceIfEmpty(defaultValue []string, message string, options []string) []string
- func RequestSecretFromUser(text string, args ...interface{}) string
- func RequestStringFromUser(text string, args ...interface{}) string
- type EnvironmentVariableGetter
- type Parameters
- type ParametersGetter
- type Pwder
- type WithPwder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInteractive ¶
func IsInteractive() bool
func RequestBump ¶
func RequestChoice ¶
func RequestChoiceIfEmpty ¶
RequestChoiceIfEmpty returns defaultValue if it is not empty, otherwise requests a choice from the user.
func RequestConfirmFromUser ¶
func RequestMultiChoice ¶
func RequestSecretFromUser ¶
func RequestStringFromUser ¶
Types ¶
type EnvironmentVariableGetter ¶
EnvironmentVariableGetter can return a map of environment variables.
type Parameters ¶
type Parameters struct { Verbose bool `yaml:"verbose"` DryRun bool `yaml:"dryRun"` Force bool `yaml:"force"` NoReport bool `yaml:"noReport"` ForceTests bool `yaml:"forceTests"` ValueOverrides map[string]string `yaml:"valueOverrides"` FileOverrides []string `yaml:"fileOverrides"` // Indicates no environment needs to be loaded in this run. NoEnvironment bool `yaml:"noEnvironment"` // Indicates no cluster is needed in this run. NoCluster bool `yaml:"noCluster"` ConfirmedEnv string `yaml:"confirmedEnv"` ProviderPriority []string `yaml:"providerPriority"` Sudo bool `yaml:"sudo"` // Additional parameters not strictly defined. Misc map[string]string `yaml:"misc"` }
type ParametersGetter ¶
type ParametersGetter interface {
GetParameters() Parameters
}
Click to show internal directories.
Click to hide internal directories.