{
  "id": "shasum",
  "name": "shasum",
  "description": "Print or check SHA checksums.",
  "executables": [
    "shasum"
  ],
  "commands": {
    "format": 1,
    "label": "Compute or verify SHA checksums",
    "description": "Print SHA checksums of files, or verify them against a checksum list. Reads standard input when no file is given.",
    "quality": "ai-draft",
    "base": "fig:shasum",
    "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/shasum.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Files",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "algorithm",
        "label": "Algorithm",
        "type": "string",
        "option": [
          "-a",
          "--algorithm"
        ],
        "suggestions": [
          {
            "value": "1",
            "label": "SHA-1"
          },
          {
            "value": "224",
            "label": "SHA-224"
          },
          {
            "value": "256",
            "label": "SHA-256"
          },
          {
            "value": "384",
            "label": "SHA-384"
          },
          {
            "value": "512",
            "label": "SHA-512"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "check",
        "label": "Verify checksums",
        "type": "boolean",
        "option": [
          "-c",
          "--check"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "binary",
        "label": "Binary mode",
        "type": "boolean",
        "option": [
          "-b",
          "--binary"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "tag",
        "label": "BSD-style output",
        "type": "boolean",
        "option": [
          "--tag"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ignore_missing",
        "label": "Ignore missing files",
        "type": "boolean",
        "option": [
          "--ignore-missing"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "type": "boolean",
        "option": [
          "-q",
          "--quiet"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "status",
        "label": "Status only",
        "type": "boolean",
        "option": [
          "-s",
          "--status"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "strict",
        "label": "Strict",
        "type": "boolean",
        "option": [
          "--strict"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "warn",
        "label": "Warn on bad lines",
        "type": "boolean",
        "option": [
          "-w",
          "--warn"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "sha256",
        "label": "SHA-256 of files",
        "set": {
          "algorithm": [
            "256"
          ]
        },
        "fields": [
          "files",
          "algorithm",
          "tag"
        ],
        "required": [
          "files"
        ]
      },
      {
        "id": "verify",
        "label": "Verify a checksum file",
        "set": {
          "check": [
            true
          ]
        },
        "fields": [
          "files",
          "algorithm",
          "check",
          "quiet",
          "ignore_missing"
        ],
        "required": [
          "files"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "algorithm",
          "check",
          "tag",
          "ignore_missing",
          "quiet"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "binary",
          "status",
          "strict",
          "warn"
        ]
      }
    ]
  }
}
