config

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigPath

func DefaultConfigPath() string

func Save

func Save(cfg *Config, path string) error

Save writes configuration to the given path.

Types

type Config

type Config struct {
	Server         string `mapstructure:"server"`
	APIKey         string `mapstructure:"api_key"`
	Username       string `mapstructure:"username"`
	Password       string `mapstructure:"password"`
	AuthMethod     string `mapstructure:"auth_method"` // "apikey" or "basic"
	DefaultProject string `mapstructure:"default_project"`
	OutputFormat   string `mapstructure:"output_format"` // "table", "wide", "json", "csv"
	NoColor        bool   `mapstructure:"no_color"`
	PageSize       int    `mapstructure:"page_size"`
}

Config holds the CLI configuration.

func Load

func Load(configPath string, log *debug.Logger) (*Config, error)

Load reads configuration from file, environment variables, and defaults.

Jump to

Keyboard shortcuts

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