Files
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

33 lines
1.6 KiB
Go

package ops
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "pgcli",
Description: "Host address of the postgres database",
Options: []spec.Option{
{Name: "-h", Description: "Host address of the postgres database"},
{Name: "-p", Description: "Port number at which the postgres instance is listening"},
{Name: "-U", Description: "Username to connect to the postgres database"},
{Name: "-u", Description: "Username to connect to the postgres database"},
{Name: "-W", Description: "Force password prompt"},
{Name: "-w", Description: "Never prompt for password"},
{Name: "--single-connection", Description: "Do not use a separate connection for completions"},
{Name: "-v", Description: "Version of pgcli"},
{Name: "-d", Description: "Database name to connect to"},
{Name: "--pgclirc", Description: "Location of pgclirc file"},
{Name: "-D", Description: "Use DSN configured into the [alias_dsn] section of pgclirc file"},
{Name: "--list-dsn", Description: "List of DSN configured into the [alias_dsn] section of pgclirc file"},
{Name: "--row-limit", Description: "Set threshold for row limit prompt. Use 0 to disable prompt"},
{Name: "--less-chatty", Description: "Skip intro on startup and goodbye on exit"},
{Name: "--prompt", Description: "List available databases, then exit"},
{Name: "--auto-vertical-output", Description: "Warn before running a destructive query"},
{Name: "--ssh-tunnel", Description: "Open an SSH tunnel to the given address and connect to the database from it"},
{Name: "--help", Description: "Show this message and exit"},
},
})
}