config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AppName = "raindrop-cli"

Variables

This section is empty.

Functions

func ConfigExists

func ConfigExists() (bool, error)

func ConfigPath

func ConfigPath() (string, error)

func Dir

func Dir() (string, error)

func EnsureDir

func EnsureDir() (string, error)

func EnsureKeyringDir

func EnsureKeyringDir() (string, error)

func ExpandPath

func ExpandPath(path string) (string, error)

ExpandPath expands ~ at the beginning of a path to the user's home directory.

func KeyringDir

func KeyringDir() (string, error)

func WriteConfig

func WriteConfig(cfg File) error

Types

type File

type File struct {
	DefaultOutput string `yaml:"default_output,omitempty"`
	Timezone      string `yaml:"timezone,omitempty"`
	OAuthPort     int    `yaml:"oauth_port,omitempty"`
	Hyperlinks    string `yaml:"hyperlinks,omitempty"`
}

func ReadConfig

func ReadConfig() (File, error)

Jump to

Keyboard shortcuts

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