settings

package
v0.41.3-stable-cadence-5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricsEnabled = "MetricsEnabled"
)

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 GetInt

func GetInt(key string) (int, error)

func GetString

func GetString(key string) (string, error)

func Set

func Set(key string, val interface{}) error

Set updates settings file with new value for provided key

Types

This section is empty.

Jump to

Keyboard shortcuts

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