Documentation
¶
Index ¶
Constants ¶
View Source
const ( URLKey = "url" TokenKey = "token" APITokenEnv = "PIXLET_TOKEN" )
Variables ¶
View Source
var ( Config = viper.New() ConfigOnce sync.Once )
View Source
var ErrKeyNotFound = fmt.Errorf("key not found")
View Source
var ErrNoToken = fmt.Errorf("tronbyt API token not set. Use `tronbyt config set token <token>` to set it")
View Source
var ErrNoURL = fmt.Errorf("tronbyt URL not set. Use `tronbyt config set url <url>` to set it")
Functions ¶
func InitConfig ¶ added in v0.50.2
func InitConfig()
func NewConfigCmd ¶ added in v0.49.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.