config

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyServerPort    = "server_port"
	KeyEditorCommand = "editor_command"
	KeyUpdateChannel = "update_channel"
	KeyRecent        = "recent"
	KeyVersion       = "version"
	KeyTemplatesDir  = "templates_dir"
	KeyRegistryDir   = "registry_dir"
	KeyRegistryUrl   = "registry_url"
	KeyGitAuthToken  = "git_auth_token"
	KeyCommit        = "commit"
	KeyDate          = "date"
)

Variables

View Source
var (
	ConfigFile string
	ConfigDir  string
	Verbose    bool
)

Functions

func AllSettings added in v0.12.0

func AllSettings() map[string]interface{}

func AppendRecentEntry

func AppendRecentEntry(file string) error

func CachedRegistryPath added in v0.12.0

func CachedRegistryPath() string

func ConfigFileUsed added in v0.12.0

func ConfigFileUsed() string

func Get added in v0.12.0

func Get(key string) string

func GetEditorCommand

func GetEditorCommand() string

func GetRecentEntries

func GetRecentEntries() []string

func GetServerPort

func GetServerPort() string

func GetUpdateChannel

func GetUpdateChannel() string

func GitAuthToken added in v0.12.0

func GitAuthToken() string

func IsSet added in v0.12.0

func IsSet(key string) bool

func RegistryDir added in v0.12.0

func RegistryDir() string

func RegistryUrl added in v0.12.0

func RegistryUrl() string

func RemoveRecentEntry

func RemoveRecentEntry(d string) error

func Set

func Set(key string, value any)

func SetVersion added in v0.12.0

func SetVersion(version string)

func TemplatesDir added in v0.12.0

func TemplatesDir() string

func WriteConfig

func WriteConfig() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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