app

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 6 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 {
	// contains filtered or unexported fields
}

func (*App) Add

func (a *App) Add(categoryName string, c Command)

func (*App) Run

func (a *App) Run(args ...string) error

func (App) Usage

func (a App) Usage()

type Command

type Command struct {
	Run   func(...string) error
	Name  string
	Usage string
}

Jump to

Keyboard shortcuts

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