settings

package
v0.42.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var Cmd = &cobra.Command{
	Use:              "settings",
	Short:            "Manage persisted global settings",
	TraverseChildren: true,
}
View Source
var MetricsSettings = &cobra.Command{
	Use:       "metrics",
	Short:     "Configure command usage metrics settings",
	Example:   "flow settings metrics disable \nflow settings metrics enable",
	Args:      cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
	ValidArgs: []string{enable, disable},
	RunE:      handleMetricsSettings,
}

Functions

func FileDir

func FileDir() string

func FileName

func FileName() string

func Get

func Get(key string) (interface{}, error)

func GetBool

func GetBool(key string) (bool, error)

func GetFlowserPath added in v0.42.0

func GetFlowserPath() (string, error)

GetFlowserPath gets set Flowser install path with sensible default.

func GetInt

func GetInt(key string) (int, error)

func GetString

func GetString(key string) (string, error)

func MetricsEnabled

func MetricsEnabled() (bool, error)

MetricsEnabled checks whether metric tracking is enabled.

func Set

func Set(key string, val interface{}) 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