env

package
v0.3.265 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: GPL-3.0 Imports: 11 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 GetHomeDirConnsMap added in v0.3.215

func GetHomeDirConnsMap() (connsMap map[string]map[string]any, err error)

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

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"`

	Path       string `json:"-" yaml:"-"`
	TopComment string `json:"-" yaml:"-"`
}

func LoadEnvFile added in v0.3.167

func LoadEnvFile(path string) (ef EnvFile)

func (*EnvFile) WriteEnvFile added in v0.3.177

func (ef *EnvFile) WriteEnvFile() (err error)

Jump to

Keyboard shortcuts

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