Documentation
¶
Overview ¶
Copyright (C) 2023, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2022, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2022, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2022, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- func FindErrorLogs(rootDirs ...string)
- func GetCLIVersion() string
- func GetSHA256FromDisk(binPath string) (string, error)
- func HandleTracking(cmd *cobra.Command, app *application.Lux, flags map[string]string)
- func HandleUserMetricsPreference(app *application.Lux) error
- func PrintMetricsOptOutPrompt()
- func SearchSHA256File(file []byte, toSearch string) (string, error)
- func TrackMetrics(command *cobra.Command, flags map[string]string)
- func ValidateJSON(path string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindErrorLogs ¶
func FindErrorLogs(rootDirs ...string)
FindErrorLogs is a utility function, we will NOT do error handling, as this is supposed to be called during error handling itself we don't want to make it even more complex
func GetCLIVersion ¶
func GetCLIVersion() string
func GetSHA256FromDisk ¶
func HandleTracking ¶
func HandleUserMetricsPreference ¶
func HandleUserMetricsPreference(app *application.Lux) error
func PrintMetricsOptOutPrompt ¶
func PrintMetricsOptOutPrompt()
func ValidateJSON ¶
ValidateJSON takes a json string and returns it's byte representation if it contains valid JSON
Types ¶
This section is empty.