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

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