Documentation
¶
Overview ¶
Package config resolves issue-tracker settings from the XDG config file and environment variables, with the environment taking precedence.
Index ¶
Constants ¶
View Source
const ( // RepoEnv names the tracker repository as owner/name. RepoEnv = "ISSUE_TRACKER_REPO" // StaleDaysEnv sets the days without activity before Doing tickets are stale. StaleDaysEnv = "ISSUE_TRACKER_STALE_DAYS" // RequirePrivateEnv makes commands refuse a tracker that is not private. RequirePrivateEnv = "ISSUE_TRACKER_REQUIRE_PRIVATE" // AccountEnv names the gh login to use instead of the active one. AccountEnv = "ISSUE_TRACKER_ACCOUNT" // AgentAccountEnv names the gh login to use in agent mode. AgentAccountEnv = "ISSUE_TRACKER_AGENT_ACCOUNT" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Repo string `toml:"repo"`
StaleDays int `toml:"stale_days"`
RequirePrivate bool `toml:"require_private"`
Account string `toml:"account"`
AgentAccount string `toml:"agent_account"`
}
Config holds resolved settings.
Click to show internal directories.
Click to hide internal directories.