profile

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTokens

func LoadTokens(profileName string, cacheDir string) (*ksef.Tokens, error)

func SaveConfig

func SaveConfig(config Config, configPath string) error

func SaveTokens

func SaveTokens(profileName string, tokens *ksef.Tokens, cacheDir string) error

Types

type Config

type Config struct {
	CurrentProfile string             `yaml:"currentProfile"`
	Profiles       map[string]Profile `yaml:"profiles"`
}

func LoadConfig

func LoadConfig(configPath string) (Config, error)

type Profile

type Profile struct {
	Nip  string `yaml:"nip"`
	Api  string `yaml:"api"`
	Name string `yaml:"name"`
}

Jump to

Keyboard shortcuts

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