config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 7 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 config provides persistent TOML configuration with XDG paths and profile support for managing multiple Jira instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() string

ConfigDir returns the XDG config directory for the application. Override via $XDG_CONFIG_HOME; defaults to ~/.config/jira-cli (Linux) or ~/Library/Application Support/jira-cli (macOS).

Types

type Config

type Config interface {
	Get(key string) string
	Set(key, value string) error
	Delete(key string) error
	List() map[string]string
	Save() error
}

Config provides read/write access to persistent CLI configuration.

func Load

func Load() (Config, error)

Load reads config from the XDG path. Missing file returns default config.

func LoadFromPath

func LoadFromPath(path string) (Config, error)

LoadFromPath reads config from a specific path (useful for testing).

type Profile

type Profile struct {
	Name     string
	Instance string
	User     string
}

Profile represents a named credential set for a Jira instance. Tokens are stored separately in the keyring (see internal/auth).

Jump to

Keyboard shortcuts

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