launchcmd

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: GPL-3.0 Imports: 31 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PNameImportBlocks = ps.Name("import-blocks")

Functions

This section is empty.

Types

type BaseCommand

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

type INITCommand

type INITCommand struct {
	GenesisDesign string `arg:"" name:"genesis design" help:"genesis design" type:"filepath"`
	Vault         string `name:"vault" help:"privatekey path of vault"`
	launch.DesignFlag
	launch.DevFlags `embed:"" prefix:"dev."`
}

func (*INITCommand) Run

func (cmd *INITCommand) Run(pctx context.Context) error

type ImportCommand

type ImportCommand struct {
	launch.DesignFlag
	From  string `arg:"" name:"from directory" help:"block data directory to import" type:"existingdir"`
	Vault string `name:"vault" help:"privatekey path of vault"`

	launch.DevFlags `embed:"" prefix:"dev."`
	// contains filtered or unexported fields
}

func (*ImportCommand) Run

func (cmd *ImportCommand) Run(pctx context.Context) error

type KeyLoadCommand

type KeyLoadCommand struct {
	BaseCommand
	KeyString string `arg:"" name:"key string" help:"key string"`
}

func (*KeyLoadCommand) Run

func (cmd *KeyLoadCommand) Run(pctx context.Context) error

type KeyNewCommand

type KeyNewCommand struct {
	BaseCommand
	Seed string `arg:"" name:"seed" optional:"" help:"seed for generating key"`
}

func (*KeyNewCommand) Run

func (cmd *KeyNewCommand) Run(pctx context.Context) error

type KeySignCommand

type KeySignCommand struct {
	BaseCommand
	KeyString string             `arg:"" name:"privatekey" help:"privatekey string"`
	NetworkID string             `arg:"" name:"network-id" help:"network-id"`
	Body      *os.File           `arg:"" help:"body"`
	Node      launch.AddressFlag `help:"node address"`
	Token     string             `help:"set fact token"`
	// contains filtered or unexported fields
}

func (*KeySignCommand) Run

func (cmd *KeySignCommand) Run(pctx context.Context) error

type NetworkClientCommand

type NetworkClientCommand struct {
	BaseCommand
	Header    string              `arg:"" help:"request header; 'example' will print example headers"`
	NetworkID string              `arg:"" name:"network-id" help:"network-id" default:""`
	Remote    launch.ConnInfoFlag `arg:"" help:"remote node conn info" placeholder:"ConnInfo" default:"localhost:4321"`
	Timeout   time.Duration       `help:"timeout" placeholder:"duration" default:"10s"`
	Body      *os.File            `help:"body"`
	DryRun    bool                `name:"dry-run" help:"don't send"`
	// contains filtered or unexported fields
}

func (*NetworkClientCommand) Run

func (cmd *NetworkClientCommand) Run(pctx context.Context) error

type RunCommand

type RunCommand struct {
	//revive:disable:line-length-limit
	launch.DesignFlag
	launch.DevFlags `embed:"" prefix:"dev."`
	Vault           string                `name:"vault" help:"privatekey path of vault"`
	Discovery       []launch.ConnInfoFlag `help:"member discovery" placeholder:"connection info"`
	Hold            launch.HeightFlag     `help:"hold consensus states" placeholder:"height"`
	HTTPState       string                `name:"http-state" help:"runtime statistics thru https" placeholder:"bind address"`
	// contains filtered or unexported fields
}

func (*RunCommand) Run

func (cmd *RunCommand) Run(pctx context.Context) error

Jump to

Keyboard shortcuts

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