config

package
v0.0.0-...-e29e17f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	APIURL string `toml:"api"`
}

Cfg represents the config for the starship cli

func CreateNewConfigFile

func CreateNewConfigFile(cfg *Cfg, configPath string) (*Cfg, error)

CreateNewConfigFile creates a new config file at the specified path and validates it

func NewConfigManager

func NewConfigManager() (*Cfg, error)

NewConfigManager instantiates a new instance of Cfg or loads it if it already exists

Jump to

Keyboard shortcuts

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