Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ExitSuccess code represents exit when success ExitSuccess = iota // ExitError code represents exit when error occur ExitError // ExitBadConnection code represents exit when bad connection ExitBadConnection // ExitInvalidInput code represents for txn, watch command ExitInvalidInput // ExitBadFeature code represents provided a valid flag with an unsupported value ExitBadFeature // ExitInterrupted code represents exit the code get interrupted ExitInterrupted // ExitIO code represents exit when io error ExitIO // ExitBadArgs code represents exit when arguments are not right ExitBadArgs = 128 )
Variables ¶
View Source
var DefaultLoadWriter io.Writer = color.Output
View Source
var Logger *logrus.Logger
View Source
var TableLogger *logrus.Logger
Functions ¶
func InitLogger ¶
func InitLogger()
func StartLoading ¶
func StartLoading(format string, args ...interface{})
func StopLoading ¶
func StopLoading()
func WriteTable ¶
Types ¶
type Prompt ¶
type Prompt interface { RequestPassphrase() string RequestString(label string, validate promptui.ValidateFunc) string RequestHiddenString(label string, validate promptui.ValidateFunc) string RequestConfirmation(label string) bool RequestChoice(label string, choices []string, opt RequestChoiceOptions) int }
type RequestChoiceOptions ¶
Click to show internal directories.
Click to hide internal directories.