Documentation
¶
Index ¶
- func Get(t *ast.Task) []string
- func GetEnviron() *ast.Vars
- func GetFromVars(env *ast.Vars) []string
- func GetRiteEnv(key string) string
- func GetRiteEnvBool(key string) (bool, bool)
- func GetRiteEnvDuration(key string) (time.Duration, bool)
- func GetRiteEnvInt(key string) (int, bool)
- func GetRiteEnvString(key string) (string, bool)
- func GetRiteEnvStringSlice(key string) ([]string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnviron ¶
GetEnviron the all return all environment variables encapsulated on a ast.Vars
func GetFromVars ¶
func GetRiteEnv ¶ added in v1.0.0
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
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
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
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
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
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.