cli

package
v0.0.0-...-72c59f2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 9 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 {
	// IO to be used by the app
	iox.IO

	// Cab is the file system to walk. Defaults to os.DirFS(pwd).
	Cab fs.FS
	// contains filtered or unexported fields
}

App is the main application struct for the walker command.

func (*App) Describe

func (a *App) Describe() string

Describe returns a description of the walker command.

func (*App) Main

func (a *App) Main(ctx context.Context, pwd string, args []string) error

Main is the main entry point for the walker command.

func (*App) Print

func (a *App) Print(w io.Writer) error

Print prints the usage for the walker command.

func (*App) SetIO

func (a *App) SetIO(oi iox.IO)

SetIO sets the IO to be used by the app.

Jump to

Keyboard shortcuts

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