config

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = newDefaultManager("force")

Functions

func GetSourceDir

func GetSourceDir() (dir string, err error)

GetSourceDir returns a rooted path name of the Salesforce source directory, relative to the current directory. GetSourceDir will look for a source directory in the nearest subdirectory. If no such directory exists, it will look at its parents, assuming that it is within a source directory already.

func IsSourceDir

func IsSourceDir(dir string) bool

IsSourceDir returns a boolean indicating that dir is actually a Salesforce source directory.

func UseConfigBase added in v1.4.3

func UseConfigBase(base string)

func UseConfigDirectory added in v1.4.3

func UseConfigDirectory(dir string) error

Types

type Manager added in v1.4.3

type Manager struct {
	Base string
	// contains filtered or unexported fields
}

func (*Manager) Delete added in v1.4.3

func (m *Manager) Delete(name, key string) error

func (*Manager) DeleteGlobal added in v1.4.3

func (m *Manager) DeleteGlobal(name, key string) error

func (*Manager) DeleteLocalOrGlobal added in v1.4.3

func (m *Manager) DeleteLocalOrGlobal(name, key string) error

func (*Manager) GlobalRoot added in v1.4.3

func (m *Manager) GlobalRoot() string

func (*Manager) List added in v1.4.3

func (m *Manager) List(name string) ([]string, error)

func (*Manager) Load added in v1.4.3

func (m *Manager) Load(name, key string) (string, error)

func (*Manager) LoadGlobal added in v1.4.3

func (m *Manager) LoadGlobal(name, key string) (string, error)

func (*Manager) LoadLocalOrGlobal added in v1.4.3

func (m *Manager) LoadLocalOrGlobal(name, key string) (string, error)

func (*Manager) Save added in v1.4.3

func (m *Manager) Save(name, key, value string) error

func (*Manager) SaveGlobal added in v1.4.3

func (m *Manager) SaveGlobal(name, key, value string) error

func (*Manager) SaveLocal added in v1.4.3

func (m *Manager) SaveLocal(name, key, value string) error

Jump to

Keyboard shortcuts

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