app

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 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) (Application, error)

Directories

Path Synopsis
Package commands provides implementations for various commands that can be executed in the pgxCLI application.
Package commands provides implementations for various commands that can be executed in the pgxCLI application.
Package ui contains the BubbleTea model for pgxcli's interactive prompt.
Package ui contains the BubbleTea model for pgxcli's interactive prompt.

Jump to

Keyboard shortcuts

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