cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

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

func New

func New(i *do.Injector) (*CLI, error)

func (*CLI) Run

func (c *CLI) Run(ctx context.Context) error

type Commander

type Commander interface {
	Command() *cobra.Command
}

type InitCommand

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

func NewInitCommand

func NewInitCommand(i *do.Injector) (*InitCommand, error)

func (*InitCommand) AddCommand

func (c *InitCommand) AddCommand(cmds ...Commander)

func (*InitCommand) Command

func (c *InitCommand) Command() *cobra.Command

type RootCommand

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

func NewRootCommand

func NewRootCommand(i *do.Injector) (*RootCommand, error)

func (*RootCommand) AddCommand

func (c *RootCommand) AddCommand(cmds ...Commander)

func (*RootCommand) Execute

func (c *RootCommand) Execute(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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