userconfig

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package userconfig reads the per-user config.json.

Index

Constants

View Source
const (
	TokenStoreFile    = "file"
	TokenStoreKeyring = "keyring"
)

token_store values config.json accepts.

View Source
const FileName = "config.json"

FileName holds per-user CLI settings.

Variables

View Source
var ErrBadConfig = errors.New("invalid Entire config")

ErrBadConfig marks an unusable config.json.

Functions

func Check

func Check() error

Check reports an unusable config.json.

func FilePath

func FilePath() string

FilePath is config.json's full path.

Types

type Config

type Config struct {
	// TokenStore is "" or a TokenStore value.
	TokenStore string
	// NoAutoUpdate turns off update checks.
	NoAutoUpdate bool
}

Config is config.json's parsed contents.

func Load

func Load() (Config, error)

Load reads config.json; missing means zero.

Jump to

Keyboard shortcuts

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