Documentation ¶
Index ¶
- Constants
- Variables
- func GetBool(key string) bool
- func GetGlobalString(key string) string
- func GetString(key string) string
- func GetToken() string
- func Init()
- func IsLoggedIn() bool
- func IsProjectInit() bool
- func MaybeGetMap(key string) map[string]interface{}
- func MaybeGetString(key string) string
- func SetGlobalConfig(key string, value interface{})
- func SetProjectConfig(key string, value interface{})
- func WriteGlobalConfig() error
- func WriteProjectConfig() error
Constants ¶
View Source
const ( Token = "token" AccountID = "account_id" Username = "username" Email = "email" ProjectSlug = "project_slug" Projects = "projects" ProxyTargetSchema = "proxy_target_schema" ProxyTargetHost = "proxy_target_host" ProxyTargetPort = "proxy_target_port" ProxyHost = "proxy_host" ProxyPort = "proxy_port" )
Variables ¶
View Source
var GlobalConfigName string
View Source
var ProjectConfigName string
View Source
var ProjectDirectory string
Functions ¶
func GetGlobalString ¶ added in v0.5.4
func IsLoggedIn ¶ added in v0.1.5
func IsLoggedIn() bool
func IsProjectInit ¶ added in v0.1.5
func IsProjectInit() bool
func MaybeGetMap ¶ added in v0.5.2
func MaybeGetString ¶ added in v0.2.5
func SetGlobalConfig ¶ added in v0.1.5
func SetGlobalConfig(key string, value interface{})
func SetProjectConfig ¶ added in v0.1.5
func SetProjectConfig(key string, value interface{})
func WriteGlobalConfig ¶ added in v0.1.5
func WriteGlobalConfig() error
func WriteProjectConfig ¶ added in v0.1.5
func WriteProjectConfig() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.