cli

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the semantic version of the CLI binary and is overridden at build time.

Functions

This section is empty.

Types

type App

type App struct {
	Dataset fs.FS
	Stdout  io.Writer
	Stderr  io.Writer
}

App wraps the command-line interface logic so it can be reused in tests.

func NewApp

func NewApp(dataset fs.FS, stdout, stderr io.Writer) *App

NewApp constructs an App with the provided dataset and I/O writers.

func (*App) Run

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

Run dispatches to the appropriate sub-command based on the provided args.

Jump to

Keyboard shortcuts

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