cmd

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Stdin = newTerminalPrompter()

Stdin holds the stdin line reader (also using stdout for printing prompts). Only this reader may be used for input because it keeps an internal buffer. var

View Source
var ZARB = `` /* 567-byte string literal not displayed */

Functions

func CreateKey added in v1.0.0

func CreateKey(pv crypto.PrivateKey) *key.Key

func PrintDangerMsg

func PrintDangerMsg(format string, a ...interface{})

func PrintErrorMsg

func PrintErrorMsg(format string, a ...interface{})

func PrintInfoMsg

func PrintInfoMsg(format string, a ...interface{})

func PrintJSONData

func PrintJSONData(data []byte)

func PrintJSONObject

func PrintJSONObject(obj interface{})

func PrintLine

func PrintLine()

func PrintSuccessMsg

func PrintSuccessMsg(format string, a ...interface{})

func PrintWarnMsg

func PrintWarnMsg(format string, a ...interface{})

func PromptInput

func PromptInput(prompt string) string

Promptlabel prompts for an input string

func PromptInputWithSuggestion

func PromptInputWithSuggestion(prompt, suggestion string) string

Promptlabel prompts for an input string with a suggestion

func PromptPassphrase

func PromptPassphrase(prompt string, confirmation bool) string

PromptPassphrase prompts the user for a passphrase. Set confirmation to true to require the user to confirm the passphrase.

func PromptPrivateKey added in v1.0.0

func PromptPrivateKey(promp string) (*key.Key, error)

PromptPrivateKey prompts the user to enter the private key, validates the private key, displays the validator address and starts the node after confirmation

func TrapSignal

func TrapSignal(cleanupFunc func())

TrapSignal traps SIGINT and SIGTERM and terminates the server correctly.

func ZarbHomeDir

func ZarbHomeDir() string

func ZarbKeystoreDir

func ZarbKeystoreDir() string

Types

This section is empty.

Directories

Path Synopsis
key
tx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL