cli

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusBarHeight = 5
)

Variables

This section is empty.

Functions

func RunCLI

func RunCLI(app *api.App)

Types

type Cursor

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

type Editor

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

func NewEditor

func NewEditor(app *api.App, chatID int, chatTitle string, messages []db.Message) (*Editor, error)

func (*Editor) Run

func (e *Editor) Run() error

type EditorMode

type EditorMode int
const (
	NormalMode EditorMode = iota
	VisualMode
	InsertMode
	APISelectMode
	QuitMode
)

type Selection

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

Jump to

Keyboard shortcuts

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