environment

package
v0.0.0-...-1fa5987 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &Static{
	Name: "exo",
	Variables: map[string]string{

		"CLICOLOR":       "1",
		"CLICOLOR_FORCE": "1",
		"FORCE_COLOR":    "3",
	},
}

Functions

This section is empty.

Types

type Builder

type Builder interface {
	AppendVariable(src Source, name string, value string)
}

type Dotenv

type Dotenv struct {
	Path string
}

func (*Dotenv) EnvironmentSource

func (src *Dotenv) EnvironmentSource() string

func (*Dotenv) ExtendEnvironment

func (src *Dotenv) ExtendEnvironment(b Builder) error

type ESV

type ESV struct {
	Client esv.EsvClient
	Name   string
	URL    string
}

func (*ESV) EnvironmentSource

func (src *ESV) EnvironmentSource() string

func (*ESV) ExtendEnvironment

func (src *ESV) ExtendEnvironment(b Builder) error

type OS

type OS struct{}

func (*OS) EnvironmentSource

func (src *OS) EnvironmentSource() string

func (*OS) ExtendEnvironment

func (src *OS) ExtendEnvironment(b Builder) error

type Source

type Source interface {
	EnvironmentSource() string
	ExtendEnvironment(Builder) error
}

type Static

type Static struct {
	Name      string
	Variables map[string]string
}

func (*Static) EnvironmentSource

func (src *Static) EnvironmentSource() string

func (*Static) ExtendEnvironment

func (src *Static) ExtendEnvironment(b Builder) error

Jump to

Keyboard shortcuts

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