package
1.0.0
Repository: https://github.com/marinx/core.git
Documentation: pkg.go.dev

# Functions

Accountable mark a command as Accountable so will have the --account flag.
AccountFromFlag returns the account based on the flag.
AccountFromFlagOrAsk return the selected account either by reading the flag value or by asking to the user.
AskAccount asks to the user to select an account.
Confirm checks that the flag "confirm" is set and otherwise ask a confirmation in the command line.
Confirmable marks a command as confirmable so will have the --confirm flag.
FindAccount returns an account if it matches either the address or the name.
GetOrAskAmount return the amount in MESG based on the flag or the user input.
HandleError display the error and stop the process if error exist.
Payable mark a command as payable.
ShowSpinnerForFunc shows a spinner during the execution of the function.
StartSpinner create a new spinner for the terminal.
WaitForCancel create a chan than is resolved when the user press CTRL+C.

# Structs

SpinnerOptions is a struct that contains all details for the spinner.