config

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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