config

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear() error

func GetConfigDir

func GetConfigDir() string

func GetConfigPath

func GetConfigPath() string

func Save

func Save(cfg *Config) error

Types

type Config

type Config struct {
	DefaultEnv string          `mapstructure:"default_env"`
	Telemetry  TelemetryConfig `mapstructure:"telemetry"`
}

func Load

func Load() (*Config, error)

type TelemetryConfig

type TelemetryConfig struct {
	Enabled   bool   `mapstructure:"enabled"`
	SessionID string `mapstructure:"session_id"`
}

Jump to

Keyboard shortcuts

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