cmdline

package
v0.0.0-...-439e08d Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Component

func Component(opts ...Option) component.Component

Types

type CmdLine

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

func New

func New(app *application.Application, opts ...Option) *CmdLine

func Object

func Object(c *component.Container) (*CmdLine, error)

func (*CmdLine) Run

func (cl *CmdLine) Run() error

type Option

type Option func(cl *CmdLine)

func WithCmds

func WithCmds(cmds []*cli.Command) Option

func WithDefaultCommand

func WithDefaultCommand(cmd string) Option

Jump to

Keyboard shortcuts

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