commands

package
v0.0.0-...-141c82c Latest Latest
Warning

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

Go to latest
Published: Apr 25, 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

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

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

Types

type InitCmd

type InitCmd struct {
	config.ZetaHomeFlag

	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

type InitDBCmd struct {
	config.ZetaHomeFlag
}

func (*InitDBCmd) Execute

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

type Start

type Start struct {
	config.ZetaHomeFlag
	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

type UnsafeResetAllCmd struct {
	config.ZetaHomeFlag
}

func (*UnsafeResetAllCmd) Execute

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

Jump to

Keyboard shortcuts

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