Documentation
¶
Overview ¶
internal/config/profile.go
Index ¶
Constants ¶
View Source
const DefaultEndpoint = "api.nweb.app:443"
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶
func DefaultConfigPath() string
Types ¶
type Config ¶
type Config struct {
ActiveProfile string `yaml:"active_profile"`
Profiles map[string]Profile `yaml:"profiles"`
}
func (*Config) ActiveProfileData ¶
ActiveProfileData returns the profile for the given name (or c.ActiveProfile if empty).
func (*Config) ResolveProfileName ¶
ResolveProfileName returns the effective profile name, falling back to ActiveProfile and then "default" when name is empty.
func (*Config) SetProfile ¶
SetProfile upserts a profile.
Click to show internal directories.
Click to hide internal directories.