exitcode

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Success      = 0
	Error        = 1
	UserDeclined = 2
	NoChanges    = 3
	Cancelled    = 130 // 128 + SIGINT
)

Exit codes for term-llm commands

Variables

This section is empty.

Functions

This section is empty.

Types

type ExitError

type ExitError struct {
	Code    int
	Message string
}

ExitError is an error that carries a specific exit code

func Cancel

func Cancel() ExitError

func Declined

func Declined(msg string) ExitError

Convenience constructors

func NoEdits

func NoEdits(msg string) 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