Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultProfileName = "default"
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
ConfigPath returns the full path to a profile's JSON file.
func EnsureConfigDir ¶
func EnsureConfigDir() error
EnsureConfigDir creates the config directory if it does not exist.
Types ¶
type Profile ¶
type Profile struct {
Endpoint string `json:"endpoint"`
CreatedAt time.Time `json:"createdAt"`
Version *string `json:"version"`
Credentials string `json:"credentials"`
}
Profile represents a CLI profile's settings.
Click to show internal directories.
Click to hide internal directories.