{
  "id": "basenc",
  "name": "basenc",
  "description": "Encode or decode data in several base encodings (GNU coreutils).",
  "executables": [
    "basenc"
  ],
  "commands": {
    "format": 1,
    "label": "Encode or decode data",
    "description": "Pick an encoding and encode or decode a file or standard input.",
    "quality": "ai-draft",
    "base": "fig:basenc",
    "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/basenc.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "file",
        "label": "File",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "base64",
        "label": "Base64",
        "type": "boolean",
        "option": [
          "--base64"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "base64url",
        "label": "Base64 URL-safe",
        "type": "boolean",
        "option": [
          "--base64url"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "base32",
        "label": "Base32",
        "type": "boolean",
        "option": [
          "--base32"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "base32hex",
        "label": "Base32 hex alphabet",
        "type": "boolean",
        "option": [
          "--base32hex"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "base16",
        "label": "Base16 (hex)",
        "type": "boolean",
        "option": [
          "--base16"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "z85",
        "label": "Z85",
        "type": "boolean",
        "option": [
          "--z85"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "decode",
        "label": "Decode",
        "type": "boolean",
        "option": [
          "-d",
          "--decode"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ignore_garbage",
        "label": "Ignore non-alphabet characters",
        "type": "boolean",
        "option": [
          "-i",
          "--ignore-garbage"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "wrap",
        "label": "Wrap columns (0 disables)",
        "type": "integer",
        "option": [
          "-w",
          "--wrap"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "b64",
        "label": "Base64 encode",
        "fields": [
          "file",
          "base64"
        ],
        "required": [
          "file",
          "base64"
        ],
        "set": {
          "base64": [
            true
          ]
        }
      },
      {
        "id": "hex",
        "label": "Hex encode",
        "fields": [
          "file",
          "base16"
        ],
        "required": [
          "file",
          "base16"
        ],
        "set": {
          "base16": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "file",
          "base64",
          "base32",
          "base16",
          "decode"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "base64url",
          "base32hex",
          "z85",
          "ignore_garbage",
          "wrap"
        ]
      }
    ]
  }
}
