Documentation ¶
Index ¶
- Variables
- func GetBLUE() string
- func GetEmail() string
- func GetGitLabUser(host, token string) string
- func GetGreen() string
- func GetGrey() string
- func GetHolidays() []time.Time
- func GetRed() string
- func GetSubscribedLabels() []string
- func GetToken(tokenType string) string
- func GetWhite() string
- func GetYellow() string
- func LoadMainConfig() (GitLabhost string, GitLabuser string, GitLabtoken string, Jiratoken string, ...)
- func New(confpath string, r io.Reader) error
- func UserConfigError()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MainConfig represents the loaded config MainConfig *viper.Viper )
Functions ¶
func GetGitLabUser ¶
func GetHolidays ¶
func GetSubscribedLabels ¶
func GetSubscribedLabels() []string
func LoadMainConfig ¶
func LoadMainConfig() (GitLabhost string, GitLabuser string, GitLabtoken string, Jiratoken string, JiraURL string)
LoadMainConfig loads the ~/.config/rhstatus/rhstatus.toml file
func New ¶
New prompts the user for the default config values to use with rhstatus, and save them to the provided confpath (default: ~/.config/rhstatus.toml)
func UserConfigError ¶
func UserConfigError()
UserConfigError returns a default error message about authentication
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.