{
  "id": "sq",
  "name": "sq",
  "homepage": "https://sq.io/",
  "description": "A free/libre open-source data wrangling swiss-army knife to inspect, query, join, import, and export data.",
  "executables": [
    "sq"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/sq/"
    ],
    "secret": [
      "~/.config/sq/sq.yml"
    ]
  },
  "commands": {
    "format": 1,
    "label": "sq",
    "description": "Inspect a data source's metadata and schema. Queries, source management and other sq subcommands are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "inspect"
        ],
        "label": "Inspect a source or table",
        "description": "Show metadata, tables and columns for a source (@handle) or a table (@handle.table). Omit the target to use the active source.",
        "source": [
          {
            "id": "help",
            "kind": "help",
            "url": "https://sq.io/docs/cmd/inspect",
            "revision": "v0.55.0",
            "evidence": "Usage:\n  sq inspect [@HANDLE|@HANDLE.TABLE|.TABLE]\n  -j, --json                       Output JSON\n  -y, --yaml                       Output YAML\n      --markdown                   Output a Markdown schema document\n      --html                       Output a standalone HTML schema document\n  -O, --overview                   Show metadata only (no schema)\n  -p, --dbprops                    Show DB properties only\n  -C, --catalogs                   List catalogs only\n  -S, --schemata                   List schemas (in current catalog) only\n      --src.schema string          Override active schema (and/or catalog) for this query\n      --no-cache                   Don't cache ingest data\n  -o, --output string              Write output to <file> instead of stdout\n  -v, --verbose                    Print verbose output\n"
          }
        ],
        "field": [
          {
            "id": "target",
            "label": "Source or table",
            "description": "@handle, @handle.table or .table; leave empty for the active source.",
            "type": "string",
            "position": 0,
            "min": 0,
            "sources": [
              "help"
            ]
          },
          {
            "id": "json",
            "label": "JSON output",
            "type": "boolean",
            "option": [
              "--json",
              "-j"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "yaml",
            "label": "YAML output",
            "type": "boolean",
            "option": [
              "--yaml",
              "-y"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "markdown",
            "label": "Markdown schema document",
            "type": "boolean",
            "option": [
              "--markdown"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "html",
            "label": "HTML schema document",
            "type": "boolean",
            "option": [
              "--html"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "overview",
            "label": "Metadata only",
            "type": "boolean",
            "option": [
              "--overview",
              "-O"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "schemata",
            "label": "List schemas",
            "type": "boolean",
            "option": [
              "--schemata",
              "-S"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "catalogs",
            "label": "List catalogs",
            "type": "boolean",
            "option": [
              "--catalogs",
              "-C"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose",
              "-v"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "output",
            "label": "Output file",
            "type": "path",
            "option": [
              "--output",
              "-o"
            ],
            "path": {
              "kind": "file",
              "role": "output",
              "must_exist": false
            },
            "effect": "overwrite",
            "sources": [
              "help"
            ]
          }
        ],
        "task": [
          {
            "id": "json",
            "label": "Inspect as JSON",
            "fields": [
              "target",
              "json"
            ],
            "required": [
              "target"
            ],
            "set": {
              "json": [
                true
              ]
            }
          },
          {
            "id": "html",
            "label": "Write HTML schema doc",
            "fields": [
              "target",
              "html",
              "output"
            ],
            "required": [
              "target",
              "output"
            ],
            "set": {
              "html": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target",
              "json",
              "yaml",
              "markdown",
              "html",
              "output"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "overview",
              "schemata",
              "catalogs",
              "verbose"
            ]
          }
        ]
      }
    ]
  }
}
