helpers

package
v0.0.0-...-5bbc133 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetEnvs

func SetEnvs(envs map[string]string)

func UnSetEnv

func UnSetEnv(envs map[string]string)

Types

type Config

type Config struct {
	Profiles []Profile `yaml:"profiles"`
}

type Profile

type Profile struct {
	Name string            `yaml:"name"`
	Envs map[string]string `yaml:"envs"`
}

func GetProfile

func GetProfile(ctx *cli.Context) (Profile, error)

func ReadConfig

func ReadConfig(profile string) (Profile, error)

Jump to

Keyboard shortcuts

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