app

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 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 Action

type Action func(ctx *cliV2.Context, conf *config.Config) error

type App

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

func NewApp

func NewApp(app *cliV2.App) *App

func (*App) Register

func (a *App) Register(commands ...Command)

func (*App) Run

func (a *App) Run()

type Command

type Command struct {
	Name        string
	Usage       string
	Flags       []cliV2.Flag
	Action      Action
	Subcommands []Command
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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