{
  "id": "pgcli",
  "name": "pgcli",
  "homepage": "https://www.pgcli.com",
  "description": "A postgres client that does auto-completion and syntax highlighting.",
  "executables": [
    "pgcli"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/pgcli/config",
      "%LOCALAPPDATA%/dbcli/pgcli/config",
      "~/.pgclirc"
    ],
    "exclude": [
      "~/.config/pgcli/history",
      "%LOCALAPPDATA%/dbcli/pgcli/history"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Connect to PostgreSQL",
    "description": "Open pgcli against a database, by name, URL or individual connection options. Passwords are never entered here; pgcli prompts for them.",
    "quality": "ai-draft",
    "base": "fig:pgcli",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/pgcli.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "database",
        "label": "Database name or URL",
        "type": "string",
        "position": 0,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "host",
        "label": "Host",
        "type": "string",
        "option": [
          "--host",
          "-h"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "port",
        "label": "Port",
        "type": "integer",
        "option": [
          "--port",
          "-p"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "username",
        "label": "Username",
        "type": "string",
        "option": [
          "--username",
          "-U"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "dbname",
        "label": "Database (option form)",
        "type": "string",
        "option": [
          "--dbname",
          "-d"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "force_password",
        "label": "Force password prompt",
        "type": "boolean",
        "option": [
          "--password",
          "-W"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_password",
        "label": "Never prompt for password",
        "type": "boolean",
        "option": [
          "--no-password",
          "-w"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "dsn",
        "label": "DSN alias",
        "type": "string",
        "option": [
          "--dsn",
          "-D"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "list",
        "label": "List databases and exit",
        "type": "boolean",
        "option": [
          "--list",
          "-l"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "less_chatty",
        "label": "Skip intro and goodbye",
        "type": "boolean",
        "option": [
          "--less-chatty"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "auto_vertical",
        "label": "Auto vertical output",
        "type": "boolean",
        "option": [
          "--auto-vertical-output"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "row_limit",
        "label": "Row limit prompt threshold",
        "type": "integer",
        "option": [
          "--row-limit"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "warn",
        "label": "Warn on destructive queries",
        "type": "string",
        "option": [
          "--warn"
        ],
        "suggestions": [
          {
            "value": "all",
            "label": "all"
          },
          {
            "value": "moderate",
            "label": "moderate"
          },
          {
            "value": "off",
            "label": "off"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "pgclirc",
        "label": "pgclirc file",
        "type": "path",
        "option": [
          "--pgclirc"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "url",
        "label": "Connect with URL or name",
        "fields": [
          "database",
          "host",
          "port",
          "username",
          "dbname",
          "force_password",
          "no_password",
          "dsn",
          "list",
          "less_chatty",
          "auto_vertical",
          "row_limit",
          "warn",
          "pgclirc"
        ],
        "required": [
          "database"
        ]
      },
      {
        "id": "hostuser",
        "label": "Connect to host",
        "fields": [
          "host",
          "port",
          "username",
          "dbname",
          "force_password"
        ],
        "required": [
          "host"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "database",
          "host",
          "port",
          "username",
          "dbname"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "force_password",
          "no_password",
          "dsn",
          "list",
          "less_chatty",
          "auto_vertical",
          "row_limit",
          "warn",
          "pgclirc"
        ]
      }
    ]
  }
}
