helpers

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfigurationReadFailed = errors.New("failed to read configuration")

Functions

func ConsumeSubCommands

func ConsumeSubCommands(cmd *cobra.Command, subCommands []*cobra.Command) *cobra.Command

func EnvArgsToMap added in v0.19.0

func EnvArgsToMap(arguments []string) map[string]string

envArgsToMap parses and expands environment arguments like "A=B" (set operation) and "A" (pass-through operation) into a map suitable for use across the codebase.

func EvaluateStarlarkConfig added in v0.19.0

func EvaluateStarlarkConfig(ctx context.Context, path string, env map[string]string) (string, error)

func ReadCombinedConfig added in v0.19.0

func ReadCombinedConfig(ctx context.Context, env map[string]string) (string, error)

func ReadYAMLConfig added in v0.19.0

func ReadYAMLConfig(path string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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