env

package
v0.3.167 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: GPL-3.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Env      = &EnvFile{}
	HomeDirs = map[string]string{}
)
View Source
var EnvFolder embed.FS

Functions

func GetEnvFilePath added in v0.3.167

func GetEnvFilePath(dir string) string

func SetHomeDir added in v0.3.167

func SetHomeDir(name string) string

func Vars

func Vars() (vars map[string]string)

Vars are the variables we are using

func WriteEnvFile added in v0.3.167

func WriteEnvFile(path string, ef EnvFile) (err error)

Types

type EnvFile added in v0.3.167

type EnvFile struct {
	Connections map[string]map[string]interface{} `json:"connections,omitempty" yaml:"connections,omitempty"`
	Variables   map[string]interface{}            `json:"variables,omitempty" yaml:"variables,omitempty"`
}

func LoadEnvFile added in v0.3.167

func LoadEnvFile(path string) (ef EnvFile)

Jump to

Keyboard shortcuts

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