config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: MIT Imports: 9 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 {
	QuipAPIToken string `json:"quip_api_token" yaml:"quip_api_token"`
}

Config represents the application configuration

type ConfigManager

type ConfigManager struct {
	// contains filtered or unexported fields
}

ConfigManager handles loading and saving configuration

func New

func New() *ConfigManager

New creates a new ConfigManager

func (*ConfigManager) GetConfigPath

func (cm *ConfigManager) GetConfigPath() string

GetConfigPath returns the path to the configuration file

func (*ConfigManager) HasValidToken

func (cm *ConfigManager) HasValidToken() bool

HasValidToken checks if a valid token is available

func (*ConfigManager) Load

func (cm *ConfigManager) Load() (*Config, error)

Load loads configuration from file and environment

func (*ConfigManager) Save

func (cm *ConfigManager) Save(config *Config) error

Save saves the configuration to file

func (*ConfigManager) SetupInteractive

func (cm *ConfigManager) SetupInteractive() error

SetupInteractive prompts the user to configure the API token

Jump to

Keyboard shortcuts

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