Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigPath ¶
func GetConfigPath() string
gets config path, creating paths if they don't exist or panics.
Types ¶
type NestConfig ¶
type NestConfig struct {
Libraries Libraries `json:"libraries"`
Directories []string `json:"directories"`
Port int `json:"port"`
Host string `json:"host"`
ApiKey string `json:"apiKey,omitempty"`
Nest Nest `json:"nest"`
}
todo use eagle instead of flat autoload/paths
func GetConfig ¶
func GetConfig() NestConfig
func MustNewConfig ¶
func MustNewConfig() (string, NestConfig)
creates config path at `~/.config/nest/config.json and creates necessary elements or panics
func MustNewConfigAndPopulateLibs ¶
func MustNewConfigAndPopulateLibs() (string, NestConfig)
also populates libraries with defaults from eagle. creates config path at `~/.config/nest/config.json and creates necessary elements or panics
Click to show internal directories.
Click to hide internal directories.