cmd

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 8 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

Functions

func CreateKey

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

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 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 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

func PromptPrivateKey(promp string, accountKey bool) (*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

Types

This section is empty.

Directories

Path Synopsis
key

Jump to

Keyboard shortcuts

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