config

package
v0.0.0-...-ef44059 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntegrateAlways = "yes"
	IntegrateNever  = "no"
	IntegrateAsk    = "ask"
)

Variables

This section is empty.

Functions

func GetPath

func GetPath() string

Types

type Store

type Store struct {
	Version          int
	Mirror           string
	MirrorRoot       string
	LocalStore       string
	IconStore        string
	IndexStore       string
	ApplicationStore string
	CustomIconTheme  bool
	Integrate        string
}

func NewZapConfig

func NewZapConfig(configPath string) (*Store, error)

NewZapConfig creates a new configuration from the configuration file if it exists, else return the defaults

func NewZapConfigInteractive

func NewZapConfigInteractive(configPath string) (*Store, error)

NewZapConfigInteractive helps to create an interactive command line interface.

func NewZapDefaultConfig

func NewZapDefaultConfig() *Store

NewZapDefaultConfig creates a fresh configuration for zap from the pre-specified defaults

Jump to

Keyboard shortcuts

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