cmd

package
v1.65.5 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Unlicense Imports: 6 Imported by: 35

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunClient added in v1.39.0

func RunClient(args []string, opts []fx.Option) error

RunClient with args and a timeout.

func RunServer

func RunServer(args []string, opts []fx.Option) error

RunServer with args and a timeout.

Types

type Command added in v1.39.0

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

Command for application.

func New

func New() *Command

New command.

func (*Command) AddClient added in v1.39.0

func (c *Command) AddClient(opts []fx.Option) *cobra.Command

AddClient to the command.

func (*Command) AddClientCommand added in v1.56.2

func (c *Command) AddClientCommand(name, description string, opts []fx.Option) *cobra.Command

AddClientCommand to root.

func (*Command) AddServer added in v1.39.0

func (c *Command) AddServer(opts []fx.Option) *cobra.Command

AddServer to the command.

func (*Command) AddServerCommand added in v1.56.2

func (c *Command) AddServerCommand(name, description string, opts []fx.Option) *cobra.Command

AddServerCommand to root.

func (*Command) AddVersion added in v1.61.0

func (c *Command) AddVersion(version string) *cobra.Command

AddVersion to root.

func (*Command) AddWorker added in v1.39.0

func (c *Command) AddWorker(opts []fx.Option) *cobra.Command

AddWorker to the command.

func (*Command) Run added in v1.39.0

func (c *Command) Run() error

Run the command.

func (*Command) RunWithArg added in v1.39.1

func (c *Command) RunWithArg(arg string) error

Run the command with a an arg.

Jump to

Keyboard shortcuts

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