internal

package
v0.90.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.0.1" // version of the ai binary

Functions

func Exit

func Exit(err error)

Exit checks error and exit with the following code: 0 -- no error 1 -- general failure 2 -- user error

func NewUserInputError

func NewUserInputError(text string) error

func NewUserInputErrorf

func NewUserInputErrorf(format string, a ...interface{}) error

Types

type UserInputError

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

UserInputError represents user input error.

func (*UserInputError) Error

func (r *UserInputError) Error() string

Directories

Path Synopsis
choose
Package choose provides an interface to choose one option from a given list of options.
Package choose provides an interface to choose one option from a given list of options.
confirm
Package confirm provides an interface to ask a user to confirm an action.
Package confirm provides an interface to ask a user to confirm an action.
file
Package file provides an interface to pick a file from a folder (tree).
Package file provides an interface to pick a file from a folder (tree).
util/tty
Package tty provides tty-aware printing.
Package tty provides tty-aware printing.
write
Package write provides a shell script interface for the text area bubble.
Package write provides a shell script interface for the text area bubble.
data
oh

Jump to

Keyboard shortcuts

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