runner

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(ctx *context.Context, executable *config.Executable, promptedEnv map[string]string) error

func ParametersToEnvList

func ParametersToEnvList(
	logger *io.Logger,
	exec *config.ParameterizedExecutable,
	promptedEnv map[string]string,
) ([]string, error)

func ParametersToEnvMap

func ParametersToEnvMap(
	logger *io.Logger,
	exec *config.ParameterizedExecutable,
	promptedEnv map[string]string,
) (map[string]string, error)

func RegisterRunner

func RegisterRunner(runner Runner)

func ResolveParameterValue

func ResolveParameterValue(logger *io.Logger, param config.Parameter, promptedEnv map[string]string) (string, error)

func SetEnv

func SetEnv(logger *io.Logger, exec *config.ParameterizedExecutable, promptedEnv map[string]string) error

Types

type Runner

type Runner interface {
	Name() string
	Exec(ctx *context.Context, executable *config.Executable, promptedEnv map[string]string) error
	IsCompatible(executable *config.Executable) bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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