config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAccount

func AddAccount(name string, key string) error

AddAccount appends an account to the configuration file

func CurrentAPIKey

func CurrentAPIKey() (string, error)

CurrentAPIKey returns the API key found in the environment, or the 'current' API key found in the credentials file if the environment is not set

func ListAccounts

func ListAccounts() error

ListAccounts prints a formatted list of users read from the configuration file

func Remove

func Remove(name string) error

Remove erases an account from the configuration file

func SetCurrent

func SetCurrent(name string) error

SetCurrent sets a chosen account to be the current account being worked in

Types

This section is empty.

Jump to

Keyboard shortcuts

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