config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath() string

func KindleConfigPath

func KindleConfigPath() string

func LoadKindleConfig

func LoadKindleConfig() (zlib.KindleConfig, error)

func SaveConfig

func SaveConfig(c Config) error

func SaveKindleConfig

func SaveKindleConfig(cfg zlib.KindleConfig) error

func SaveSession

func SaveSession(s Session) error

func SessionPath

func SessionPath() string

Types

type Config

type Config struct {
	Theme string `json:"theme,omitempty"`
}

Config stores global CLI preferences.

func LoadConfig

func LoadConfig() (Config, error)

type Session

type Session struct {
	Cookies map[string]string `json:"cookies"`
	Domain  string            `json:"domain"`
}

func LoadSession

func LoadSession() (Session, error)

Jump to

Keyboard shortcuts

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