cli

package
v0.0.21 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) int

Types

type Account

type Account struct {
	UI cli.Ui
}

func (*Account) Help

func (a *Account) Help() string

Help implements the cli.Command interface

func (*Account) Run

func (a *Account) Run(args []string) int

Run implements the cli.Command interface

func (*Account) Synopsis

func (a *Account) Synopsis() string

Synopsis implements the cli.Command interface

type AccountImportCommand

type AccountImportCommand struct {
	*Meta
}

func (*AccountImportCommand) Flags

func (a *AccountImportCommand) Flags() *flagset.Flagset

func (*AccountImportCommand) Help

func (a *AccountImportCommand) Help() string

Help implements the cli.Command interface

func (*AccountImportCommand) Run

func (a *AccountImportCommand) Run(args []string) int

Run implements the cli.Command interface

func (*AccountImportCommand) Synopsis

func (a *AccountImportCommand) Synopsis() string

Synopsis implements the cli.Command interface

type AccountListCommand

type AccountListCommand struct {
	*Meta
}

func (*AccountListCommand) Flags

func (a *AccountListCommand) Flags() *flagset.Flagset

func (*AccountListCommand) Help

func (a *AccountListCommand) Help() string

Help implements the cli.Command interface

func (*AccountListCommand) Run

func (a *AccountListCommand) Run(args []string) int

Run implements the cli.Command interface

func (*AccountListCommand) Synopsis

func (a *AccountListCommand) Synopsis() string

Synopsis implements the cli.Command interface

type AccountNewCommand

type AccountNewCommand struct {
	*Meta
}

func (*AccountNewCommand) Flags

func (a *AccountNewCommand) Flags() *flagset.Flagset

func (*AccountNewCommand) Help

func (a *AccountNewCommand) Help() string

Help implements the cli.Command interface

func (*AccountNewCommand) Run

func (a *AccountNewCommand) Run(args []string) int

Run implements the cli.Command interface

func (*AccountNewCommand) Synopsis

func (a *AccountNewCommand) Synopsis() string

Synopsis implements the cli.Command interface

type ChainCommand

type ChainCommand struct {
	UI cli.Ui
}

ChainCommand is the command to group the peers commands

func (*ChainCommand) Help

func (c *ChainCommand) Help() string

Help implements the cli.Command interface

func (*ChainCommand) Run

func (c *ChainCommand) Run(args []string) int

Run implements the cli.Command interface

func (*ChainCommand) Synopsis

func (c *ChainCommand) Synopsis() string

Synopsis implements the cli.Command interface

type ChainSetHeadCommand

type ChainSetHeadCommand struct {
	*Meta2
	// contains filtered or unexported fields
}

ChainSetHeadCommand is the command to group the peers commands

func (*ChainSetHeadCommand) Flags

func (c *ChainSetHeadCommand) Flags() *flagset.Flagset

func (*ChainSetHeadCommand) Help

func (c *ChainSetHeadCommand) Help() string

Help implements the cli.Command interface

func (*ChainSetHeadCommand) Run

func (c *ChainSetHeadCommand) Run(args []string) int

Run implements the cli.Command interface

func (*ChainSetHeadCommand) Synopsis

func (c *ChainSetHeadCommand) Synopsis() string

Synopsis implements the cli.Command interface

type ChainWatchCommand

type ChainWatchCommand struct {
	*Meta2
}

ChainWatchCommand is the command to group the peers commands

func (*ChainWatchCommand) Flags

func (c *ChainWatchCommand) Flags() *flagset.Flagset

func (*ChainWatchCommand) Help

func (c *ChainWatchCommand) Help() string

Help implements the cli.Command interface

func (*ChainWatchCommand) Run

func (c *ChainWatchCommand) Run(args []string) int

Run implements the cli.Command interface

func (*ChainWatchCommand) Synopsis

func (c *ChainWatchCommand) Synopsis() string

Synopsis implements the cli.Command interface

type DebugCommand

type DebugCommand struct {
	*Meta2
	// contains filtered or unexported fields
}

func (*DebugCommand) Flags

func (d *DebugCommand) Flags() *flagset.Flagset

func (*DebugCommand) Help

func (d *DebugCommand) Help() string

Help implements the cli.Command interface

func (*DebugCommand) Run

func (d *DebugCommand) Run(args []string) int

Run implements the cli.Command interface

func (*DebugCommand) Synopsis

func (d *DebugCommand) Synopsis() string

Synopsis implements the cli.Command interface

type Meta

type Meta struct {
	UI cli.Ui
	// contains filtered or unexported fields
}

Meta is a helper utility for the commands

func (*Meta) AskPassword

func (m *Meta) AskPassword() (string, error)

func (*Meta) GetKeystore

func (m *Meta) GetKeystore() (*keystore.KeyStore, error)

func (*Meta) NewFlagSet

func (m *Meta) NewFlagSet(n string) *flagset.Flagset

type Meta2

type Meta2 struct {
	UI cli.Ui
	// contains filtered or unexported fields
}

func (*Meta2) BorConn

func (m *Meta2) BorConn() (proto.BorClient, error)

func (*Meta2) Conn

func (m *Meta2) Conn() (*grpc.ClientConn, error)

func (*Meta2) NewFlagSet

func (m *Meta2) NewFlagSet(n string) *flagset.Flagset

type PeersAddCommand

type PeersAddCommand struct {
	*Meta2
	// contains filtered or unexported fields
}

PeersAddCommand is the command to group the peers commands

func (*PeersAddCommand) Flags

func (p *PeersAddCommand) Flags() *flagset.Flagset

func (*PeersAddCommand) Help

func (p *PeersAddCommand) Help() string

Help implements the cli.Command interface

func (*PeersAddCommand) Run

func (c *PeersAddCommand) Run(args []string) int

Run implements the cli.Command interface

func (*PeersAddCommand) Synopsis

func (c *PeersAddCommand) Synopsis() string

Synopsis implements the cli.Command interface

type PeersCommand

type PeersCommand struct {
	UI cli.Ui
}

PeersCommand is the command to group the peers commands

func (*PeersCommand) Help

func (c *PeersCommand) Help() string

Help implements the cli.Command interface

func (*PeersCommand) Run

func (c *PeersCommand) Run(args []string) int

Run implements the cli.Command interface

func (*PeersCommand) Synopsis

func (c *PeersCommand) Synopsis() string

Synopsis implements the cli.Command interface

type PeersListCommand

type PeersListCommand struct {
	*Meta2
}

PeersListCommand is the command to group the peers commands

func (*PeersListCommand) Flags

func (p *PeersListCommand) Flags() *flagset.Flagset

func (*PeersListCommand) Help

func (p *PeersListCommand) Help() string

Help implements the cli.Command interface

func (*PeersListCommand) Run

func (c *PeersListCommand) Run(args []string) int

Run implements the cli.Command interface

func (*PeersListCommand) Synopsis

func (c *PeersListCommand) Synopsis() string

Synopsis implements the cli.Command interface

type PeersRemoveCommand

type PeersRemoveCommand struct {
	*Meta2
	// contains filtered or unexported fields
}

PeersRemoveCommand is the command to group the peers commands

func (*PeersRemoveCommand) Flags

func (p *PeersRemoveCommand) Flags() *flagset.Flagset

func (*PeersRemoveCommand) Help

func (p *PeersRemoveCommand) Help() string

Help implements the cli.Command interface

func (*PeersRemoveCommand) Run

func (c *PeersRemoveCommand) Run(args []string) int

Run implements the cli.Command interface

func (*PeersRemoveCommand) Synopsis

func (c *PeersRemoveCommand) Synopsis() string

Synopsis implements the cli.Command interface

type PeersStatusCommand

type PeersStatusCommand struct {
	*Meta2
}

PeersStatusCommand is the command to group the peers commands

func (*PeersStatusCommand) Flags

func (p *PeersStatusCommand) Flags() *flagset.Flagset

func (*PeersStatusCommand) Help

func (p *PeersStatusCommand) Help() string

Help implements the cli.Command interface

func (*PeersStatusCommand) Run

func (c *PeersStatusCommand) Run(args []string) int

Run implements the cli.Command interface

func (*PeersStatusCommand) Synopsis

func (c *PeersStatusCommand) Synopsis() string

Synopsis implements the cli.Command interface

type StatusCommand

type StatusCommand struct {
	*Meta2
}

StatusCommand is the command to output the status of the client

func (*StatusCommand) Help

func (p *StatusCommand) Help() string

Help implements the cli.Command interface

func (*StatusCommand) Run

func (c *StatusCommand) Run(args []string) int

Run implements the cli.Command interface

func (*StatusCommand) Synopsis

func (c *StatusCommand) Synopsis() string

Synopsis implements the cli.Command interface

type VersionCommand

type VersionCommand struct {
	UI cli.Ui
}

VersionCommand is the command to show the version of the agent

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

Help implements the cli.Command interface

func (*VersionCommand) Run

func (c *VersionCommand) Run(args []string) int

Run implements the cli.Command interface

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Synopsis implements the cli.Command interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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