app

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package app is the application layer.

It orchestrates the repl loop, command routing, result handling and history management. custom commands and edit command buffer are also handled here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	// Start starts the main repl loop, reading input, executing commands and printing results until the user exits.
	Start(ctx context.Context) error

	// Close performs saving history before exiting.
	Close() error
}

Application defines the interface for the main application logic.

func New

func New(cfg *config.Config, printer cliio.Printer, logger *slog.Logger, completer *completer.Completer, client *database.Client, version string) (Application, error)

Directories

Path Synopsis
ui
Package ui contains terminal UI flows used by the CLI.
Package ui contains terminal UI flows used by the CLI.

Jump to

Keyboard shortcuts

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