envpath

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOrUpdateEnvPaths added in v0.1.2

func AddOrUpdateEnvPaths(addOrUpdateEnvPaths ...string) *errorwrapper.Wrapper

func AddOrUpdateEnvPathsPtr added in v0.1.2

func AddOrUpdateEnvPathsPtr(addOrUpdateEnvPaths *[]string) *errorwrapper.Wrapper

func GetEnvSeparator added in v0.1.2

func GetEnvSeparator() string

func LinuxAddOrUpdate added in v0.1.2

func LinuxAddOrUpdate(isApplyEnvironmentSource bool, envPaths ...string) *errorwrapper.Wrapper

func LinuxAddOrUpdatePtr added in v0.1.2

func LinuxAddOrUpdatePtr(envPaths []string, isApplyEnvironmentSource bool) *errorwrapper.Wrapper

func LinuxApplySourceEnvironment added in v0.1.2

func LinuxApplySourceEnvironment() *errorwrapper.Wrapper

func LinuxRemovePtr added in v0.1.2

func LinuxRemovePtr(envPaths []string, isApplyEnvironmentSource bool) *errorwrapper.Wrapper

func ReadEnvPaths added in v0.1.2

func ReadEnvPaths() []string

func ReadEnvPathsPtr added in v0.1.2

func ReadEnvPathsPtr() *[]string

func RemoveEnvPaths added in v0.1.2

func RemoveEnvPaths(removeEnvPaths ...string) *errorwrapper.Wrapper

func RemoveEnvPathsPtr added in v0.1.2

func RemoveEnvPathsPtr(removeEnvPaths *[]string) *errorwrapper.Wrapper

func SetEnv added in v0.1.2

func SetEnv(variable, value string) *errorwrapper.Wrapper

func SetEnvPath added in v0.1.2

func SetEnvPath(compiledPath string) *errorwrapper.Wrapper

Types

type ExecutableEnvironmentPath

type ExecutableEnvironmentPath struct {
	Variable string
	Expanded string

	sync.Mutex
	// contains filtered or unexported fields
}

func (*ExecutableEnvironmentPath) GetCachedFileNamesCollection

func (it *ExecutableEnvironmentPath) GetCachedFileNamesCollection() *fileinfo.FileNamesCollection

GetCachedFileNamesCollection returns all pathsCollection paths on that env directory once, caches it and returns that in later function calls

func (*ExecutableEnvironmentPath) GetDirectories

func (it *ExecutableEnvironmentPath) GetDirectories() []*string

GetDirectories

returns all directories paths on that env directory,

func (*ExecutableEnvironmentPath) GetFileNamesCollection

func (it *ExecutableEnvironmentPath) GetFileNamesCollection() *fileinfo.FileNamesCollection

func (*ExecutableEnvironmentPath) GetFilePathsContains

func (it *ExecutableEnvironmentPath) GetFilePathsContains(
	separator,
	contains string,
) *[]string

GetFilePathsContains

returns all pathsCollection paths on which contains the given string. If no path is found, returns empty array.

func (*ExecutableEnvironmentPath) Length

func (it *ExecutableEnvironmentPath) Length() int

type ExecutableEnvironmentPathCollection

type ExecutableEnvironmentPathCollection struct {
	// contains filtered or unexported fields
}

func GetExecutableEnvironmentPathCollection

func GetExecutableEnvironmentPathCollection() *ExecutableEnvironmentPathCollection

func NewExecutableEnvironmentPathCollection

func NewExecutableEnvironmentPathCollection(capacity int) ExecutableEnvironmentPathCollection

func NewExecutableEnvironmentPathCollectionPtr

func NewExecutableEnvironmentPathCollectionPtr(capacity int) *ExecutableEnvironmentPathCollection

func (*ExecutableEnvironmentPathCollection) AddPtr

func (receiver *ExecutableEnvironmentPathCollection) AddPtr(
	exeEnvPath *ExecutableEnvironmentPath,
)

func (*ExecutableEnvironmentPathCollection) IsExists added in v0.0.8

func (receiver *ExecutableEnvironmentPathCollection) IsExists(
	exeEnvPath *ExecutableEnvironmentPath,
) bool

func (*ExecutableEnvironmentPathCollection) List

func (*ExecutableEnvironmentPathCollection) OnlyNamesCollection

func (receiver *ExecutableEnvironmentPathCollection) OnlyNamesCollection() *[]*ExecutableEnvironmentPath

Jump to

Keyboard shortcuts

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