cmd

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNode added in v0.10.0

func CreateNode(numValidators int, chain genesis.ChainType, workingDir string,
	mnemonic string, walletPassword string,
) ([]string, []string, error)

func FatalErrorCheck added in v0.10.0

func FatalErrorCheck(err error)

func PactusConfigPath

func PactusConfigPath(home string) string

func PactusDefaultHomeDir added in v0.18.2

func PactusDefaultHomeDir() string

func PactusDefaultWalletPath

func PactusDefaultWalletPath(home string) string

func PactusGenesisPath

func PactusGenesisPath(home string) string

func PrintErrorMsgf added in v0.15.0

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

func PrintInfoMsgBoldf added in v0.15.0

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

func PrintInfoMsgf added in v0.15.0

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

func PrintJSONData

func PrintJSONData(data []byte)

func PrintJSONObject

func PrintJSONObject(obj interface{})

func PrintLine

func PrintLine()

func PrintSuccessMsgf added in v0.15.0

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

func PrintWarnMsgf added in v0.15.0

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

func PromptConfirm

func PromptConfirm(label string) bool

PromptConfirm prompts user to confirm the operation.

func PromptInput

func PromptInput(label string) string

PromptInput prompts for an input string.

func PromptInputWithRange added in v0.10.0

func PromptInputWithRange(label string, def, min, max int) int

PromptInputWithRange prompts the user for an input integer within a specified range.

func PromptInputWithSuggestion

func PromptInputWithSuggestion(label, suggestion string) string

PromptInputWithSuggestion prompts the user for an input string with a suggestion.

func PromptPassword

func PromptPassword(label string, confirmation bool) string

PromptPassword prompts the user for a password. Set confirmation to true to require the user to confirm the password.

func StartNode added in v0.11.0

func StartNode(workingDir string, passwordFetcher func(*wallet.Wallet) (string, bool)) (
	*node.Node, *wallet.Wallet, error,
)

func TrapSignal

func TrapSignal(cleanupFunc func())

TrapSignal traps SIGINT and SIGTERM and terminates the server correctly.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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