Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigPath ¶
GetConfigPath returns the ~/.spot_config path
func SaveConfig ¶
func SaveConfig(cfg *SpotConfig) error
Types ¶
type SpotConfig ¶
type SpotConfig struct {
Org string `yaml:"org"`
RefreshToken string `yaml:"refreshToken"`
AccessToken string `yaml:"accessToken"`
Region string `yaml:"region"`
}
func GetCLIEssentials ¶
func GetCLIEssentials(cmd *cobra.Command) (*SpotConfig, error)
func LoadConfig ¶
func LoadConfig() (*SpotConfig, error)
Click to show internal directories.
Click to hide internal directories.