settings

package
v1.21.0-cadence-v1.0.0... Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Darwin  = "darwin"
	Windows = "windows"
	Linux   = "linux"
)

Variables

View Source
var Cmd = &cobra.Command{
	Use:              "settings",
	Short:            "Manage persisted global settings",
	TraverseChildren: true,
}

Functions

func FileDir

func FileDir() string

func FileName

func FileName() string

func GetFlowserPath added in v0.42.0

func GetFlowserPath() (string, error)

GetFlowserPath gets set Flowser install path with sensible default.

func MetricsEnabled

func MetricsEnabled() bool

MetricsEnabled checks whether metric tracking is enabled.

func Set

func Set(key string, val any) error

Set updates settings file with new value for provided key

func SetFlowserPath added in v0.42.0

func SetFlowserPath(path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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