cli

package
v0.0.0-...-949c8fb Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("cli",
	fx.Provide(New),
	fx.Decorate(loadCommand),
	fx.Invoke(execute),
)

Functions

This section is empty.

Types

type CLI

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

func New

func New(logger *logger.Logger) *CLI

type Command

type Command interface {
	Name() string
	Description() string
	Run(cmd *cobra.Command, args []string)
}

type CommandLoaderDeps

type CommandLoaderDeps struct {
	fx.In

	Cli      *CLI
	Commands []Command `group:"command"`
}

Jump to

Keyboard shortcuts

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