cli

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Version string
	DB      database.Database
	Queue   queue.Queuer
	Logger  log.StdLogger
	Tracer  tracer.Tracer
	Cache   cache.Cache
}

App is the core dependency of the entire binary.

type ConvoyCli

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

func NewCli

func NewCli(app *App) *ConvoyCli

func (*ConvoyCli) AddCommand

func (c *ConvoyCli) AddCommand(subCmd *cobra.Command)

func (*ConvoyCli) Execute

func (c *ConvoyCli) Execute() error

func (*ConvoyCli) Flags

func (c *ConvoyCli) Flags() *flag.FlagSet

func (*ConvoyCli) PersistentPostRunE

func (c *ConvoyCli) PersistentPostRunE(fn func(*cobra.Command, []string) error)

func (*ConvoyCli) PersistentPreRunE

func (c *ConvoyCli) PersistentPreRunE(fn func(*cobra.Command, []string) error)

Jump to

Keyboard shortcuts

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