config

package
v0.10.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2019 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVersion

func CheckVersion(cfg *models.Config) error

CheckVersion is responsible for displaying an warning message if the version of kibble is newer than the version the template was built with

func LoadConfig

func LoadConfig(runAsAdmin bool, apiKey string, disableCache bool) *models.Config

LoadConfig loads the configuration from disk. If runAsAdmin it will attempt to load the private config

func LoadPrivateConfig

func LoadPrivateConfig(cfg *models.Config, apiKey string)

LoadPrivateConfig is responsible for loading the private configuration if it exists

func SaveConfig

func SaveConfig(cfg *models.Config)

SaveConfig writes the configuration to disk

func SavePrivateConfig

func SavePrivateConfig(cfg *models.Config)

SavePrivateConfig - saves any private config

func UpdateBuilderVersion

func UpdateBuilderVersion(cfg *models.Config)

UpdateBuilderVersion updates the build with version with the current version and saves the config

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL