Documentation ¶
Index ¶
- Constants
- Variables
- func FileDir() string
- func FileName() string
- func Get(key string) (interface{}, error)
- func GetBool(key string) (bool, error)
- func GetFlowserPath() (string, error)
- func GetInt(key string) (int, error)
- func GetString(key string) (string, error)
- func MetricsEnabled() (bool, error)
- func Set(key string, val interface{}) error
- func SetFlowserPath(path string) error
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 GetFlowserPath ¶ added in v0.42.0
GetFlowserPath gets set Flowser install path with sensible default.
func MetricsEnabled ¶
MetricsEnabled checks whether metric tracking is enabled.
func SetFlowserPath ¶ added in v0.42.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.