Discover Packages
github.com/BasisTI/taiga-cli
internal
config
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Oct 5, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package config resolves file locations, the user config file and the Taiga URL/project context.
NormalizeURL returns scheme://host[:port] (host lowercased) without trailing slash or /api/v1 suffix.
Save writes the config atomically with mode 0600.
WriteFileAtomic writes via a temp file + rename, creating parent dirs with 0700 and the file with 0600.
type Context struct {
URL Value `json:"url"`
Project Value `json:"project"`
}
Resolve applies flag > env > .taiga.toml > user config for URL and project.
type File struct {
DefaultHost string `toml:"default_host,omitempty"`
Hosts []Host `toml:"hosts"`
}
Load reads the config file; a missing file is an empty config.
type Host struct {
URL string `toml:"url"`
Username string `toml:"username"`
SecretSource string `toml:"secret_source"`
SecretCommand []string `toml:"secret_command,omitempty"`
Project string `toml:"project,omitempty"`
}
DefaultPaths honours TAIGA_CONFIG, TAIGA_STATE_DIR and the XDG base directories.
Relative XDG_* (and HOME) values are ignored, as the XDG spec requires.
type RepoFile struct {
URL string `toml:"url"`
Project string `toml:"project"`
}
FindRepoFile walks up from startDir looking for .taiga.toml.
type Value struct {
Value string `json:"value"`
Source string `json:"source"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.