{
  "id": "od",
  "name": "od",
  "description": "Dumps files in octal, decimal, hexadecimal or ASCII.",
  "executables": [
    "od"
  ],
  "commands": {
    "format": 1,
    "label": "Dump file bytes",
    "description": "Dump a file as hex, octal, decimal or characters. Only common options are included; the -t type string is free-form.",
    "quality": "ai-draft",
    "base": "fig:od",
    "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/od.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "file",
        "label": "File",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "address_base",
        "label": "Address base",
        "type": "enum",
        "option": [
          "-A"
        ],
        "choices": [
          {
            "value": "d",
            "label": "Decimal"
          },
          {
            "value": "o",
            "label": "Octal"
          },
          {
            "value": "x",
            "label": "Hexadecimal"
          },
          {
            "value": "n",
            "label": "None"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "type",
        "label": "Output type",
        "description": "For example x1 for hex bytes, c for characters, d4 for signed ints.",
        "type": "string",
        "option": [
          "-t"
        ],
        "suggestions": [
          {
            "value": "x1",
            "label": "Hex bytes"
          },
          {
            "value": "c",
            "label": "Characters"
          },
          {
            "value": "a",
            "label": "Named characters"
          },
          {
            "value": "o1",
            "label": "Octal bytes"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "skip",
        "label": "Skip bytes",
        "type": "string",
        "option": [
          "-j"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "length",
        "label": "Max bytes",
        "type": "string",
        "option": [
          "-N"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "all",
        "label": "Show duplicate lines",
        "type": "boolean",
        "option": [
          "-v"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "hex",
        "label": "Hex dump with characters",
        "set": {
          "type": [
            "x1"
          ]
        },
        "fields": [
          "file",
          "address_base",
          "type",
          "skip",
          "length",
          "all"
        ],
        "required": [
          "file"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "file",
          "address_base",
          "type"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "skip",
          "length",
          "all"
        ]
      }
    ]
  }
}
