config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package config contains the configuration for the application. The configuration is loaded from a JSON document.

Index

Constants

View Source
const (
	KeyServerPort    = "server_port"
	KeyEditorCommand = "editor_command"
	KeyUpdateChannel = "update_channel"
	KeyRecent        = "recent"
	KeyVersion       = "version"
	KeyPackageDir    = "package_dir"
)

Variables

View Source
var ConfigFile string
View Source
var DryRun bool = false
View Source
var Verbose bool

Functions

func AppendRecentEntry

func AppendRecentEntry(file string)

func GetEditorCommand

func GetEditorCommand() string

func GetPackageDir

func GetPackageDir() string

func GetRecentEntries

func GetRecentEntries() []string

func GetServerPort

func GetServerPort() string

func GetUpdateChannel

func GetUpdateChannel() string

func InitConfig

func InitConfig()

initConfig reads in config file and ENV variables if set.

func Must

func Must(err error)

func RemoveRecentEntry

func RemoveRecentEntry(d string)

func Set

func Set(key string, value any)

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