Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
func DefaultPath() string
DefaultPath returns ~/.bbcloud.yaml, or .bbcloud.yaml in the current directory if the home directory cannot be determined.
Types ¶
type Config ¶
type Config struct {
Workspace string `yaml:"workspace"`
Repo string `yaml:"repo"`
Username string `yaml:"username"`
Token string `yaml:"token"`
}
Config holds all configurable values for bb.
func Load ¶
Load reads the config file at path and overlays BITBUCKET_USER / BITBUCKET_TOKEN env vars. If the file does not exist, Load returns a zero-value Config (not an error).
Click to show internal directories.
Click to hide internal directories.