commonflags

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GenerateKey = "generate-key"

	WalletPath          = "wallet"
	WalletPathShorthand = "w"
	WalletPathDefault   = ""
	WalletPathUsage     = "WIF (NEP-2) string or path to the wallet or binary key"

	Account          = "address"
	AccountShorthand = ""
	AccountDefault   = ""
	AccountUsage     = "address of wallet account"

	RPC          = "rpc-endpoint"
	RPCShorthand = "r"
	RPCDefault   = ""
	RPCUsage     = "remote node address (as 'multiaddr' or '<host>:<port>')"

	Verbose          = "verbose"
	VerboseShorthand = "v"
	VerboseUsage     = "verbose output"
)

Common CLI flag keys, shorthands, default values and their usage descriptions.

Variables

This section is empty.

Functions

func Bind

func Bind(cmd *cobra.Command)

Bind binds common command flags to the viper.

func Init

func Init(cmd *cobra.Command)

Init adds common flags to the command: - GenerateKey - WalletPath - Account - RPC

func InitWithoutRPC

func InitWithoutRPC(cmd *cobra.Command)

InitWithoutRPC is similar to Init but doesn't create the RPC flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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