{
  "id": "base64",
  "name": "base64",
  "description": "Encode and decode using Base64 representation.",
  "executables": [
    "base64"
  ],
  "commands": {
    "format": 1,
    "label": "Base64 encode or decode",
    "description": "Encode or decode a file or standard input to a file or terminal.",
    "quality": "ai-draft",
    "base": "fig:base64",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/base64.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "input",
        "label": "Input file",
        "type": "path",
        "option": [
          "-i",
          "--input"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "output",
        "label": "Output file",
        "type": "path",
        "option": [
          "-o",
          "--output"
        ],
        "path": {
          "kind": "file",
          "role": "output"
        },
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "decode",
        "label": "Decode",
        "type": "boolean",
        "option": [
          "-d",
          "--decode"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "break",
        "label": "Line break every N characters",
        "type": "integer",
        "option": [
          "-b",
          "--break"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "encode",
        "label": "Encode a file",
        "fields": [
          "input",
          "output",
          "break"
        ],
        "required": [
          "input"
        ]
      },
      {
        "id": "decode",
        "label": "Decode a file",
        "fields": [
          "input",
          "output",
          "decode"
        ],
        "required": [
          "input",
          "decode"
        ],
        "set": {
          "decode": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "input",
          "output",
          "decode",
          "break"
        ]
      }
    ]
  }
}
