cli

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusSuccess = 0
	StatusFailure = 1
)

Status codes returned by App to indicate sucess or failure.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name, Version       string
	Writer, ErrorWriter io.Writer
}

App is a command-line interface to lib127.

func (App) Run

func (a App) Run(args ...string) int

Run runs the application with the given arguments. Returns 0 on success and 1 on failure.

Jump to

Keyboard shortcuts

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