Documentation
¶
Index ¶
- Variables
- func AddProfile(name string, profile *cli.Profile) error
- func ClearDefaultProfile() error
- func EnsureAnonymousID() string
- func GetDefaultProfile() string
- func GetProfile(name string) (*cli.Profile, error)
- func GetProfiles() map[string]cli.Profile
- func ListProfiles() []string
- func RemoveProfile(name string) error
- func SetDefaultProfile(name string) error
- func SetDefaultProfileIfUnset(name string) (bool, error)
- func TelemetryEnabled() bool
- func TelemetryEndpoint() string
- func UpdateProfile(name string, profile *cli.Profile) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddProfile ¶
AddProfile adds a new profile to the config
func ClearDefaultProfile ¶ added in v0.75.1
func ClearDefaultProfile() error
ClearDefaultProfile clears the default profile setting
func EnsureAnonymousID ¶ added in v0.96.0
func EnsureAnonymousID() string
func GetDefaultProfile ¶ added in v0.75.1
func GetDefaultProfile() string
GetDefaultProfile returns the name of the default profile, or empty string if none is set
func GetProfile ¶
GetProfile returns a specific profile by name
func GetProfiles ¶
GetProfiles returns all profiles from the config
func RemoveProfile ¶
RemoveProfile removes a profile from the config
func SetDefaultProfile ¶ added in v0.75.1
SetDefaultProfile sets the default profile
func SetDefaultProfileIfUnset ¶ added in v0.95.4
SetDefaultProfileIfUnset makes name the default profile when none is configured and reports whether it did.
func TelemetryEnabled ¶ added in v0.96.0
func TelemetryEnabled() bool
func TelemetryEndpoint ¶ added in v0.96.0
func TelemetryEndpoint() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.