commands

package
v0.67.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context) error

func Init

func Init(ctx context.Context, parser *flags.Parser) error

func InitDB added in v0.58.0

func InitDB(ctx context.Context, parser *flags.Parser) error

func Register

func Register(ctx context.Context, parser *flags.Parser, cmds ...Subcommand) error

Register registers one or more subcommands.

func Run

func Run(ctx context.Context, parser *flags.Parser) error

func UnsafeResetAll added in v0.58.0

func UnsafeResetAll(ctx context.Context, parser *flags.Parser) error

Types

type InitCmd

type InitCmd struct {
	config.VegaHomeFlag

	Force bool `short:"f" long:"force" description:"Erase exiting blockexplorer configuration at the specified path"`
}

func (*InitCmd) Execute

func (opts *InitCmd) Execute(_ []string) error

type InitDBCmd added in v0.58.0

type InitDBCmd struct {
	config.VegaHomeFlag
}

func (*InitDBCmd) Execute added in v0.58.0

func (opts *InitDBCmd) Execute(_ []string) error

type Start

type Start struct {
	config.VegaHomeFlag
	config.Config
}

func (*Start) Execute

func (opts *Start) Execute(_ []string) error

type Subcommand

type Subcommand func(context.Context, *flags.Parser) error

Subcommand is the signature of a sub command that can be registered.

type UnsafeResetAllCmd added in v0.58.0

type UnsafeResetAllCmd struct {
	config.VegaHomeFlag
}

func (*UnsafeResetAllCmd) Execute added in v0.58.0

func (opts *UnsafeResetAllCmd) Execute(_ []string) error

Jump to

Keyboard shortcuts

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