Documentation
¶
Overview ¶
package main is the entry point of pgxcli. It initializes the CLI application and executes the root command.
The main function sets up the context, initializes the printer for output and error messages, and creates the root command of the CLI application.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
app
Package app is the application layer.
|
Package app is the application layer. |
|
app/ui
Package ui contains terminal UI flows used by the CLI.
|
Package ui contains terminal UI flows used by the CLI. |
|
cli
Package cli contains the command-line interface for pgxcli.
|
Package cli contains the command-line interface for pgxcli. |
|
cliio
Package cliio provides utilities for printing output to the terminal including support for pagers and colored output.
|
Package cliio provides utilities for printing output to the terminal including support for pagers and colored output. |
|
config
Package config provides utilities for loading and managing configuration settings for the application.
|
Package config provides utilities for loading and managing configuration settings for the application. |
|
database
Package database manages PostgreSQL connections, execution, and special commands.
|
Package database manages PostgreSQL connections, execution, and special commands. |
|
logger
Package logger provides structured logging helpers for pgxcli.
|
Package logger provides structured logging helpers for pgxcli. |
|
parser
code copied from https://github.com/jackc/tern/blob/master/migrate/internal/sqlsplit/sqlsplit.go
|
code copied from https://github.com/jackc/tern/blob/master/migrate/internal/sqlsplit/sqlsplit.go |
|
perrors
Package perrors provides error handling for pgxcli.
|
Package perrors provides error handling for pgxcli. |
|
this package contains special command types
|
this package contains special command types |
|
database
this package provide the interface to interact with the database
|
this package provide the interface to interact with the database |
|
examples/list_databases
command
|
Click to show internal directories.
Click to hide internal directories.