Documentation
¶
Overview ¶
Package config handles configuration management
Index ¶
Constants ¶
View Source
const ( // DefaultAPIURL is the default GitScrum API URL DefaultAPIURL = "https://services.gitscrum.com" // ConfigDir is the config directory name ConfigDir = ".gitscrum" // ConfigFile is the config file name ConfigFile = "config.yaml" )
Variables ¶
This section is empty.
Functions ¶
func GetLanguage ¶
func GetLanguage() string
GetLanguage returns the configured language or "en" as default
func SetLanguage ¶
SetLanguage sets the default language (en, pt, fr, es)
Types ¶
type Config ¶
type Config struct {
// API URL
APIURL string `mapstructure:"api_url"`
// Default workspace slug
Workspace string `mapstructure:"workspace"`
// Default project slug
Project string `mapstructure:"project"`
// Language preference (en, pt, fr, es)
Language string `mapstructure:"language"`
// OAuth settings
OAuth OAuthConfig `mapstructure:"oauth"`
}
Config holds the CLI configuration
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a new Config with default values
type OAuthConfig ¶
type OAuthConfig struct {
ClientID string `mapstructure:"client_id"`
Scopes string `mapstructure:"scopes"`
}
OAuthConfig holds OAuth configuration
Directories
¶
| Path | Synopsis |
|---|---|
|
Package projectconfig handles project-level configuration (.gitscrum.yml)
|
Package projectconfig handles project-level configuration (.gitscrum.yml) |
Click to show internal directories.
Click to hide internal directories.