{
  "id": "ping",
  "name": "ping",
  "description": "Send ICMP ECHO_REQUEST packets to network hosts.",
  "executables": [
    "ping"
  ],
  "commands": {
    "format": 1,
    "label": "Ping a host",
    "description": "Send echo requests to a host. Only options shared by BSD and Linux ping are offered; flags that differ between platforms are left out.",
    "quality": "ai-draft",
    "base": "fig:ping",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/ping.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "host",
        "label": "Hostname or IP",
        "type": "string",
        "position": 0,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "count",
        "label": "Packet count",
        "description": "Stop after this many packets; unset pings until interrupted.",
        "type": "integer",
        "option": [
          "-c"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "interval",
        "label": "Seconds between packets",
        "type": "number",
        "option": [
          "-i"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "numeric",
        "label": "Numeric output only",
        "type": "boolean",
        "option": [
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet output",
        "type": "boolean",
        "option": [
          "-q"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "size",
        "label": "Data bytes",
        "type": "integer",
        "option": [
          "-s"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbose output",
        "type": "boolean",
        "option": [
          "-v"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "check",
        "label": "Ping four times",
        "fields": [
          "host",
          "count"
        ],
        "required": [
          "host",
          "count"
        ],
        "set": {
          "count": [
            4
          ]
        }
      },
      {
        "id": "cont",
        "label": "Ping until interrupted",
        "fields": [
          "host"
        ],
        "required": [
          "host"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "host",
          "count",
          "interval",
          "numeric",
          "quiet"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "size",
          "verbose"
        ]
      }
    ]
  }
}
