config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfig

func SaveConfig(cfg Config) error

SaveConfig saves the configuration to the config file.

Types

type Config

type Config struct {
	APIKey  string `json:"api_key"`
	BaseURL string `json:"base_url"`
}

Config represents the CLI configuration.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default configuration values *stored in the file*. The effective default (like base URL) might be applied elsewhere if the file value is empty.

func LoadConfig

func LoadConfig() (Config, error)

LoadConfig loads the configuration from the config file.

Jump to

Keyboard shortcuts

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