cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure added in v0.4.0

func Configure(v version.Info)

func Execute

func Execute() error

func NewRootCmd

func NewRootCmd() *command.Command

func NewStopCmd added in v0.3.1

func NewStopCmd() *command.Command

func NewVersionCmd added in v0.4.0

func NewVersionCmd(v version.Info) *command.Command

Types

type RootCmdConfig

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

func (*RootCmdConfig) Exec

func (c *RootCmdConfig) Exec(ctx context.Context, args []string) error

func (*RootCmdConfig) RegisterFlags

func (c *RootCmdConfig) RegisterFlags(fs *flag.FlagSet)

type StopCmdConfig added in v0.3.1

type StopCmdConfig struct {
	RootCmdConfig
}

func (*StopCmdConfig) Exec added in v0.3.1

func (c *StopCmdConfig) Exec(ctx context.Context, args []string) error

func (*StopCmdConfig) RegisterFlags added in v0.3.1

func (c *StopCmdConfig) RegisterFlags(fs *flag.FlagSet)

type VersionCmdConfig added in v0.4.0

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

func (*VersionCmdConfig) Exec added in v0.4.0

func (c *VersionCmdConfig) Exec(ctx context.Context, args []string) error

func (*VersionCmdConfig) RegisterFlags added in v0.4.0

func (c *VersionCmdConfig) RegisterFlags(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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