envfile

package
v0.0.0-...-04aec82 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAbraShEnvVars

func ReadAbraShEnvVars(abraSh string) (map[string]string, error)

ReadAbraShEnvVars reads env vars from an abra.sh recipe file.

func ReadEnvWithModifiers

func ReadEnvWithModifiers(filePath string) (AppEnv, AppModifiers, error)

ReadEnv loads an app envivornment and their modifiers in two different maps.

Types

type AppEnv

type AppEnv = map[string]string

AppEnv is a map of the values in an apps env config

func ReadEnv

func ReadEnv(filePath string) (AppEnv, error)

ReadEnv loads an app envivornment into a map.

type AppModifiers

type AppModifiers = map[string]map[string]string

AppModifiers is a map of modifiers in an apps env config

type EnvVar

type EnvVar struct {
	Name    string
	Present bool
}

Jump to

Keyboard shortcuts

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