cli

package
v0.22.5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 4 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 {
	Commands       []*Command
	Out            io.Writer
	ConfigProvided func(config string) error
}

func (*App) Run

func (a *App) Run(args []string) error

type Command

type Command struct {
	Name        string
	Description string
	Aliases     []string
	Run         func(state *RunState) error
}

type RunState added in v0.21.0

type RunState struct {
	Out  io.Writer
	Args []string
}

Jump to

Keyboard shortcuts

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