cli

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 2 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 {
	Globals
	// contains filtered or unexported fields
}

App is the CLI application.

func NewApp

func NewApp(version string) *App

NewApp constructs and returns an App from the passed env variables and flags.

func (*App) Run

func (cli *App) Run() error

Run runs the CLI application.

type Globals

type Globals struct {
	LogLevel string      `short:"l" help:"Set the logging level (debug|info|warn|error|fatal)" default:"info"`
	Version  versionFlag `name:"version" help:"Print version information and quit"`
}

Globals contains the global flags for the CLI.

Jump to

Keyboard shortcuts

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