env

package
v3.49.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(t *ast.Task) []string

func GetEnviron added in v3.42.0

func GetEnviron() *ast.Vars

GetEnviron the all return all environment variables encapsulated on a ast.Vars

func GetFromVars added in v3.41.0

func GetFromVars(env *ast.Vars) []string

func GetTaskEnv added in v3.42.0

func GetTaskEnv(key string) string

func GetTaskEnvBool added in v3.49.0

func GetTaskEnvBool(key string) (bool, bool)

GetTaskEnvBool returns the boolean value of a TASK_ prefixed env var. Returns the value and true if set and valid, or false and false if not set or invalid.

func GetTaskEnvDuration added in v3.49.0

func GetTaskEnvDuration(key string) (time.Duration, bool)

GetTaskEnvDuration returns the duration value of a TASK_ prefixed env var. Returns the value and true if set and valid, or 0 and false if not set or invalid.

func GetTaskEnvInt added in v3.49.0

func GetTaskEnvInt(key string) (int, bool)

GetTaskEnvInt returns the integer value of a TASK_ prefixed env var. Returns the value and true if set and valid, or 0 and false if not set or invalid.

func GetTaskEnvString added in v3.49.0

func GetTaskEnvString(key string) (string, bool)

GetTaskEnvString returns the string value of a TASK_ prefixed env var. Returns the value and true if set (non-empty), or empty string and false if not set.

func GetTaskEnvStringSlice added in v3.49.0

func GetTaskEnvStringSlice(key string) ([]string, bool)

GetTaskEnvStringSlice returns a comma-separated list from a TASK_ prefixed env var. Returns the slice and true if set (non-empty), or nil and false if not set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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