cmd

package
v0.0.0-...-3320e36 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: BSD-3-Clause Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package implements "status" sub-commands.

Index

Constants

View Source
const (
	IDLen = 32
)

Variables

View Source
var ErrInsufficientFunds = errors.New("insufficient funds")

Functions

func AddCommand

func AddCommand() *cobra.Command

AddCommand implements "subnet-cli add" command.

func BaseTableSetup

func BaseTableSetup(i *Info) (*bytes.Buffer, *tablewriter.Table)

func CreateAddTable

func CreateAddTable(i *Info) string

func CreateCommand

func CreateCommand() *cobra.Command

CreateCommand implements "subnet-cli create" command.

func CreateLogger

func CreateLogger() error

func CreateSpellPostTable

func CreateSpellPostTable(i *Info) string

func CreateSpellPreTable

func CreateSpellPreTable(i *Info) string

func Execute

func Execute() error

func MakeCreateTable

func MakeCreateTable(i *Info) string

func ParseNodeIDs

func ParseNodeIDs(cli client.Client, i *Info) error

func StatusCommand

func StatusCommand() *cobra.Command

NewCommand implements "subnet-cli status" command.

func WaitValidator

func WaitValidator(cli client.Client, nodeIDs []ids.ShortID, i *Info)

func WizardCommand

func WizardCommand() *cobra.Command

WizardCommand implements "subnet-cli wizard" command.

Types

type Info

type Info struct {
	// contains filtered or unexported fields
}

func InitClient

func InitClient(uri string, loadKey bool) (client.Client, *Info, error)

func (*Info) CheckBalance

func (i *Info) CheckBalance() error

type ValInfo

type ValInfo struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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