{
  "id": "dog",
  "name": "dog",
  "description": "A command-line DNS client.",
  "homepage": "https://github.com/ogham/dog",
  "executables": [
    "dog"
  ],
  "commands": {
    "format": 1,
    "label": "DNS lookup",
    "description": "Query DNS records for a name. Uses the dog flag syntax (--query, --type, --nameserver).",
    "quality": "ai-draft",
    "base": "fig:dog",
    "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/dog.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "name",
        "label": "Host name",
        "type": "string",
        "option": [
          "--query",
          "-q"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "type",
        "label": "Record type",
        "type": "string",
        "option": [
          "--type",
          "-t"
        ],
        "suggestions": [
          {
            "value": "A",
            "label": "A"
          },
          {
            "value": "AAAA",
            "label": "AAAA"
          },
          {
            "value": "MX",
            "label": "MX"
          },
          {
            "value": "NS",
            "label": "NS"
          },
          {
            "value": "TXT",
            "label": "TXT"
          },
          {
            "value": "CNAME",
            "label": "CNAME"
          },
          {
            "value": "SOA",
            "label": "SOA"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "nameserver",
        "label": "Nameserver",
        "type": "string",
        "option": [
          "--nameserver",
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "tcp",
        "label": "Use TCP",
        "type": "boolean",
        "option": [
          "--tcp",
          "-T"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "tls",
        "label": "DNS-over-TLS",
        "type": "boolean",
        "option": [
          "--tls",
          "-S"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "https",
        "label": "DNS-over-HTTPS",
        "type": "boolean",
        "option": [
          "--https",
          "-H"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "short",
        "label": "Short output",
        "type": "boolean",
        "option": [
          "--short",
          "-1"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "json",
        "label": "JSON output",
        "type": "boolean",
        "option": [
          "--json",
          "-J"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "time",
        "label": "Print response time",
        "type": "boolean",
        "option": [
          "--time"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "lookup",
        "label": "Look up a record",
        "fields": [
          "name",
          "type",
          "nameserver"
        ],
        "required": [
          "name"
        ]
      },
      {
        "id": "short",
        "label": "Short answer",
        "set": {
          "short": [
            true
          ]
        },
        "fields": [
          "name",
          "type",
          "short"
        ],
        "required": [
          "name"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "name",
          "type",
          "nameserver",
          "short",
          "json"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "tcp",
          "tls",
          "https",
          "time"
        ]
      }
    ]
  }
}
