Documentation ¶
Index ¶
- Variables
- func ConsumeSubCommands(cmd *cobra.Command, subCommands []*cobra.Command) *cobra.Command
- func EnvArgsToMap(arguments []string) map[string]string
- func EnvFileToMap(envFilePath string) (map[string]string, error)
- func EvaluateStarlarkConfig(ctx context.Context, path string, env map[string]string) (string, error)
- func GitDiff(dir string, revision string, cached bool) ([]string, error)
- func ReadCombinedConfig(ctx context.Context, env map[string]string) (string, error)
- func ReadYAMLConfig(path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConfigurationReadFailed = errors.New("failed to read configuration")
Functions ¶
func ConsumeSubCommands ¶
func EnvArgsToMap ¶ added in v0.19.0
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 EnvFileToMap ¶ added in v0.98.0
func EvaluateStarlarkConfig ¶ added in v0.19.0
func GitDiff ¶ added in v0.64.0
GitDiff is a simplified "git diff" and "git diff --cached" implementation using go-git.
GitDiff closely resembles the implementation of go-git Worktree's Status() method.
func ReadCombinedConfig ¶ added in v0.19.0
func ReadYAMLConfig ¶ added in v0.19.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.