cli

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitSuccess         = 0
	ExitGeneralError    = 1
	ExitValidationError = 2
	ExitMigrationError  = 3
	ExitRollbackBlocked = 4
)

Variables

This section is empty.

Functions

func NewApp added in v0.6.0

func NewApp(version string) *strictcli.App

NewApp creates the migrable CLI application with all commands registered.

Types

type ExitError

type ExitError struct {
	Code    int
	Message string
}

ExitError wraps an error with a specific exit code.

func NewExitError

func NewExitError(code int, format string, args ...any) *ExitError

func (*ExitError) Error

func (e *ExitError) Error() string

Jump to

Keyboard shortcuts

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