config

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DefaultProjectDir  string `yaml:"default_project_dir" json:"default_project_dir"`
	PreferredShell     string `yaml:"preferred_shell" json:"preferred_shell"`
	TUIEnabled         bool   `yaml:"tui_enabled" json:"tui_enabled"`
	AutoInstallDeps    bool   `yaml:"auto_install_deps" json:"auto_install_deps"`
	FallbackToPlainCLI bool   `yaml:"fallback_to_plain_cli" json:"fallback_to_plain_cli"`
	LogLevel           string `yaml:"log_level" json:"log_level"`
	Theme              string `yaml:"theme" json:"theme"`
	Language           string `yaml:"language" json:"language"`
}

Config represents the CLI configuration

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns the default configuration

func Load

func Load() (*Config, error)

Load loads the configuration from file

func (*Config) Save

func (c *Config) Save() error

Save saves the configuration to file

Jump to

Keyboard shortcuts

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