Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Path ¶
Path returns the config file path. On Windows: %AppData%\pb\config.toml On macOS/Linux: ~/.config/pb/config.toml (XDG style)
func WriteConfigToFile ¶
WriteConfigToFile writes the configuration to the config file
Types ¶
type Config ¶
Config is the struct that holds the configuration
func ReadConfigFromFile ¶
ReadConfigFromFile reads the configuration from the config file
type Profile ¶
type Profile struct {
URL string `toml:"url" json:"url"`
Username string `toml:"username,omitempty" json:"username,omitempty"`
Password string `toml:"password,omitempty" json:"password,omitempty"`
Token string `toml:"token,omitempty" json:"token,omitempty"`
}
Profile is the struct that holds the profile configuration
func GetProfile ¶
Click to show internal directories.
Click to hide internal directories.