commands

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 19 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 Gateway

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

func Init

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

func Node

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

func Postgres

func Postgres(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 Start

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

func Version

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

Types

type InitCmd

type InitCmd struct {
	config.VegaHomeFlag

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

func (*InitCmd) Execute

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

type PostgresCmd

type PostgresCmd struct {
	Run PostgresRunCmd `command:"run"`
}

type PostgresRunCmd

type PostgresRunCmd struct {
	config.VegaHomeFlag
	config.Config
}

func (*PostgresRunCmd) Execute

func (cmd *PostgresRunCmd) Execute(_ []string) error

type StartCmd

type StartCmd struct {
	config.VegaHomeFlag

	config.Config
}

func (*StartCmd) Execute

func (cmd *StartCmd) Execute(args []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 VersionCmd

type VersionCmd struct {
	config.OutputFlag
	// contains filtered or unexported fields
}

func (*VersionCmd) Execute

func (cmd *VersionCmd) Execute(_ []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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