Documentation ¶
Index ¶
Constants ¶
View Source
const APIKeyEnv = "XATA_API_KEY"
env var to read the API key from
View Source
const ArgKey = "configdir"
ArgKey is the cmd argument used to configure the config dir path
View Source
const DirPerms = 0700
View Source
const FilePerms = 0600
Variables ¶
This section is empty.
Functions ¶
func APIKeyInEnv ¶
func APIKeyInEnv() bool
APIKeyInEnv returns true if API key is overridden by XATA_API_KEY env var
func ConfigDir ¶
func ConfigDir(c *cli.Context) string
Config dir to use, with the following precedence:
1. --configdir arg 2. $XATA_CONFIG_DIR env var 2. $XDG_CONFIG_HOME/xata if $XDG_CONFIG_HOME is defined 3. %APP_DATA%/Xata CLI folder (windows only) 4. ~/.config/xata
func RemoveAPIKey ¶
func RemoveAPIKey(c *cli.Context) error
func StoreAPIKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.