Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractAlias ¶ added in v0.2.0
ExtractAlias derives an alias from a Backlog space URL. e.g., "https://myteam.backlog.com" -> "myteam"
Types ¶
type Config ¶
type Config struct {
CurrentSpace string `yaml:"current_space"`
Spaces map[string]SpaceConfig `yaml:"spaces"`
}
Config holds the application configuration supporting multiple spaces.
func Load ¶
Load reads the config file and returns a Config. Automatically migrates from the old single-space format.
func (*Config) Current ¶ added in v0.2.0
func (c *Config) Current() *SpaceConfig
Current returns the currently active SpaceConfig, or nil if not set.
func (*Config) SpaceNames ¶ added in v0.2.0
SpaceNames returns sorted space alias names.
type SpaceConfig ¶ added in v0.2.0
type SpaceConfig struct {
SpaceURL string `yaml:"space_url"`
APIKey string `yaml:"api_key"`
DefaultProject string `yaml:"default_project,omitempty"`
}
SpaceConfig holds credentials and settings for a single Backlog space.
Click to show internal directories.
Click to hide internal directories.