config

package
v0.0.0-...-d7f87ae Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIKeyEnv overrides the stored credential for CI, coding agents, and
	// temporary overrides.
	APIKeyEnv = "LINEAR_API_KEY"
)

Variables

View Source
var ErrAPIKeyNotFound = errors.New("api key not found")

Functions

func DeleteAPIKey

func DeleteAPIKey() error

func SaveAPIKey

func SaveAPIKey(apiKey string) error

Types

type CredentialSource

type CredentialSource string
const (
	CredentialSourceEnvironment CredentialSource = "environment"
	CredentialSourceKeyring     CredentialSource = "keyring"
	CredentialSourceMissing     CredentialSource = "missing"
)

func ResolveAPIKey

func ResolveAPIKey() (string, CredentialSource, error)

ResolveAPIKey returns the Linear API key. LINEAR_API_KEY wins; otherwise the key is read from the OS keyring where `linear auth login` stored it.

Jump to

Keyboard shortcuts

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