cfg

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidConfigFile = errors.New("invalid config file")

Functions

func ConfigFile added in v0.10.0

func ConfigFile() string

func Dir

func Dir() string

func EffectiveValue added in v0.10.0

func EffectiveValue(key string) (string, error)

func IsKnownKey added in v0.10.0

func IsKnownKey(key string) bool

func ListEffective added in v0.10.0

func ListEffective() ([]string, error)

func LoadUserOverrides added in v0.10.0

func LoadUserOverrides() (map[string]any, error)

func ReadJavaVersion

func ReadJavaVersion() string

ReadJavaVersion reads the .java-version file from the current working directory and returns the trimmed version string. If the file does not exist or cannot be read, it returns an empty string.

func ReadJavaVersionFromFS added in v0.11.0

func ReadJavaVersionFromFS(vfs fs.FS) string

func SetValue added in v0.10.0

func SetValue(key string, value string) error

func UnsetValue added in v0.10.0

func UnsetValue(key string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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