cli

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOK    = 0
	StatusError = 1
)

Variables

View Source
var (
	ErrMissingDSN = &MissingRequiredFlagError{FlagName: "-dsn"}
)

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(input io.Reader, outStream, errStream io.Writer) *App

func (*App) Run

func (a *App) Run(ctx context.Context, argv []string) int

type MissingRequiredFlagError

type MissingRequiredFlagError struct {
	FlagName string
}

func (*MissingRequiredFlagError) Error

func (e *MissingRequiredFlagError) Error() string

func (*MissingRequiredFlagError) Is

func (e *MissingRequiredFlagError) Is(err error) bool

Jump to

Keyboard shortcuts

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