mirror of
https://github.com/ollama/ollama.git
synced 2026-01-29 07:12:03 +03:00
19 lines
321 B
Go
19 lines
321 B
Go
package readline
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var ErrInterrupt = errors.New("Interrupt")
|
|
|
|
// ErrExpandOutput is returned when user presses Ctrl+O to expand tool output
|
|
var ErrExpandOutput = errors.New("ExpandOutput")
|
|
|
|
type InterruptError struct {
|
|
Line []rune
|
|
}
|
|
|
|
func (*InterruptError) Error() string {
|
|
return "Interrupted"
|
|
}
|