common

package
v0.0.0-...-79ba347 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitOnErr

func ExitOnErr(cmd *cobra.Command, errFmt string, err error)

ExitOnErr prints error and exits with a code that matches one of the common errors from sdk library. If no errors found, exits with 1 code. Does nothing if passed error in nil.

func PrettyPrintNetMap

func PrettyPrintNetMap(cmd *cobra.Command, nm netmap.NetMap, short bool)

PrettyPrintNetMap print information about network map.

func PrettyPrintNodeInfo

func PrettyPrintNodeInfo(cmd *cobra.Command, node netmap.NodeInfo,
	index int, indent string, short bool)

PrettyPrintNodeInfo print information about network node with given indent and index. To avoid printing attribute list use short parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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