Documentation
¶
Index ¶
- func AppendHistory(envName, command string) error
- func BasePath() (string, error)
- func Clear(name string, keepHistory bool) error
- func Create(name string) error
- func Delete(name string) error
- func EnsureBaseStructure() error
- func EnsureDefaultEnvironment() error
- func EnvsPath() (string, error)
- func Exists(name string) bool
- func Export(name, outputPath string) error
- func GlobalConfigPath() (string, error)
- func Import(inputPath, targetName string, force bool) (string, error)
- func Open(name string) (string, error)
- func ReadHistory(envName string) ([]string, error)
- func Rename(oldName, newName string) error
- func ResolveEnvPath(name string) (string, error)
- func RestoreVariables(envName string) (map[string]any, error)
- func SaveGlobalConfig(cfg GlobalConfig) error
- func SaveState(envName string, vars map[string]any) error
- type EnvironmentInfo
- type ExportPayload
- type GlobalConfig
- type SerializedVariable
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendHistory ¶
func EnsureBaseStructure ¶
func EnsureBaseStructure() error
func EnsureDefaultEnvironment ¶
func EnsureDefaultEnvironment() error
func GlobalConfigPath ¶
func ReadHistory ¶
func ResolveEnvPath ¶
func SaveGlobalConfig ¶
func SaveGlobalConfig(cfg GlobalConfig) error
Types ¶
type EnvironmentInfo ¶
func Info ¶
func Info(name string) (EnvironmentInfo, error)
func List ¶
func List() ([]EnvironmentInfo, error)
type ExportPayload ¶
type GlobalConfig ¶
type GlobalConfig struct {
DefaultEnv string `json:"defaultEnv"`
LogLevel string `json:"logLevel"`
NoColor bool `json:"noColor"`
}
func LoadGlobalConfig ¶
func LoadGlobalConfig() (GlobalConfig, error)
func UpdateGlobalConfig ¶
func UpdateGlobalConfig(key, value string) (GlobalConfig, error)
type SerializedVariable ¶
Click to show internal directories.
Click to hide internal directories.