Documentation
¶
Index ¶
Constants ¶
View Source
const ( APITokenConfigKey = "api_token" OrganizationsSlugConfigKey = "organizations" SelectedOrgKey = "selected_org" )
Variables ¶
This section is empty.
Functions ¶
func ConfigFile ¶
func ConfigFile() string
Config path precedence: XDG_CONFIG_HOME, AppData (windows only), HOME.
Types ¶
type Config ¶
type Config struct { Organization string APIToken string V ViperConfig }
Config contains the configuration for the currently selected organization to operate on with the CLI application
config file format (yaml):
selected_org: buildkite organizations: buildkite: api_token: <token> buildkite-oss: api_token: <token>
type ProjectConfig ¶
type ProjectConfig struct {
Pipeline string `yaml:"pipeline"`
}
func LoadProjectConfig ¶
func LoadProjectConfig() (*ProjectConfig, error)
Click to show internal directories.
Click to hide internal directories.