app

package
v0.0.0-...-9b3adab Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 7 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 NewApp

func NewApp(opts ...Option) *App

func (*App) Run

func (a *App) Run()

type CliOptions

type CliOptions interface {
	Flags() cli.NamedFlagSets
	Validate() []error
}

type Option

type Option func(*App)

func WithBasename

func WithBasename(basename string) Option

func WithCliOptions

func WithCliOptions(cliopts CliOptions) Option

func WithRunFunc

func WithRunFunc(f RunFunc) Option

type RunFunc

type RunFunc func(basename string) error

Jump to

Keyboard shortcuts

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