Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
func HandleError(err error)
HandleError displays the error and stops the process if the error exists
func ShowSpinnerForFunc ¶
func ShowSpinnerForFunc(opts SpinnerOptions, function func())
ShowSpinnerForFunc shows a spinner during the execution of the function.
func StartSpinner ¶
func StartSpinner(opts SpinnerOptions) (spinner *spinnerPkg.Spinner)
StartSpinner creates new spinner for terminal.
func WaitForCancel ¶
WaitForCancel creates a chan that is resolved when the user press CTRL+C.
Types ¶
type SpinnerOptions ¶
SpinnerOptions contains all details for the spinner
Click to show internal directories.
Click to hide internal directories.