repl

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package repl provides an interactive shell for AQL queries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type History

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

History manages query history.

func NewHistory

func NewHistory() *History

NewHistory creates a new history manager.

func (*History) Add

func (h *History) Add(entry string)

Add adds an entry to history.

func (*History) Clear

func (h *History) Clear()

Clear clears all history.

func (*History) Entries

func (h *History) Entries() []string

Entries returns all history entries.

func (*History) Load

func (h *History) Load() error

Load loads history from disk.

func (*History) Save

func (h *History) Save() error

Save saves history to disk.

type REPL

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

REPL provides an interactive query shell.

func New

func New(client *aha.Client, cfg *config.Config) *REPL

New creates a new REPL instance.

func (*REPL) Run

func (r *REPL) Run()

Run starts the interactive REPL.

Jump to

Keyboard shortcuts

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