Documentation ¶
Index ¶
- Variables
- func DisplayProfileData()
- func FailOnError(err error)
- func FailOnErrorWithMessage(err error, message string)
- func FileHash(filePath string) (string, error)
- func LogTime(operation string)
- func ShowError(err error)
- func ShowErrorWithMessage(err error, message string)
- func ShowSpinner(msg string) *spinner.Spinner
- func ShowWarning(warning string)
- func StopSpinner(spinner *spinner.Spinner)
- func StopSpinnerWithMessage(spinner *spinner.Spinner, finalMsg string)
- func StringHash(s string) uint32
- type ExitCode
- type InteractiveExitStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var Timing []timeLog
Functions ¶
func DisplayProfileData ¶
func DisplayProfileData()
func FailOnError ¶
func FailOnError(err error)
func FailOnErrorWithMessage ¶
func ShowErrorWithMessage ¶
func ShowSpinner ¶
ShowSpinner :: starts a spinner with a given message
func ShowWarning ¶
func ShowWarning(warning string)
func StopSpinner ¶
StopSpinner :: stops a spinner instance and clears it
func StopSpinnerWithMessage ¶
StopSpinnerWithMessage :: stops a spinner instance and clears it, after writing `finalMsg`
func StringHash ¶
Types ¶
type InteractiveExitStatus ¶
InteractiveExitStatus :: exist status from the interative prompt
We exit go-prompt after every query (in order to manage the prompt history to only include complete queries) We therefore need to distinguish between:
a user requested exit (ctrl+D or .exit) - indicated by a non-nil exit code and restart=false and a value , go-prompt being terminated after a query completion and requiring restarting - indicated by restart=true
Click to show internal directories.
Click to hide internal directories.