env

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 6 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

func GetEnviron() *ast.Vars

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

func GetFromVars

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

func GetRiteEnv added in v1.0.0

func GetRiteEnv(key string) string

GetRiteEnv returns the value of a RITE_-prefixed environment variable. The prefix is applied automatically; callers pass the bare suffix.

func GetRiteEnvBool added in v1.0.0

func GetRiteEnvBool(key string) (bool, bool)

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

func GetRiteEnvDuration added in v1.0.0

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

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

func GetRiteEnvInt added in v1.0.0

func GetRiteEnvInt(key string) (int, bool)

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

func GetRiteEnvString added in v1.0.0

func GetRiteEnvString(key string) (string, bool)

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

func GetRiteEnvStringSlice added in v1.0.0

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

GetRiteEnvStringSlice returns a comma-separated list from a RITE_-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