config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAPIKey

func DeleteAPIKey() error

func IsLoggedIn

func IsLoggedIn() bool

func LoadAPIKey

func LoadAPIKey() (string, error)

func Purge

func Purge() error

Purge removes all local configuration and credentials

func SaveAPIKey

func SaveAPIKey(key string) error

func SaveConfig

func SaveConfig(cfg *Config) error

Types

type Config

type Config struct {
	FirstLogin bool   `json:"first_login"`
	Plan       string `json:"plan"`
	PlanLabel  string `json:"plan_label"`
}

Config holds persisted non-secret settings

func LoadConfig

func LoadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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