config

package
v2.0.3-0...-9f42ec6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BitbucketUsername string `mapstructure:"bitbucket_username"`
	BitbucketPassword string `mapstructure:"bitbucket_password"`
}

Config for the CLI

func LoadConfig

func LoadConfig(loadFile bool) (config Config, err error)

LoadConfig using ~/.bpr/config.env or environment

func LoadConfigOrPanic

func LoadConfigOrPanic(loadFile bool) Config

LoadConfigOrPanic does exactly what it says

func (Config) GetHttp

func (c Config) GetHttp() http.Client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL