{
  "id": "file",
  "name": "file",
  "homepage": "https://github.com/file/file",
  "executables": [
    "file"
  ],
  "dotfiles": {
    "paths": [
      "~/.magic.mgc",
      "~/.magic",
      "~/.magic/magic.mgc"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Identify file type",
    "description": "Determine the type of one or more files. Debugging, magic-file compilation and parameter limits are left out.",
    "quality": "ai-draft",
    "base": "fig:file",
    "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/file.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Files",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "any",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "brief",
        "label": "Brief output",
        "description": "Do not prepend filenames to output lines.",
        "type": "boolean",
        "option": [
          "--brief",
          "-b"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "mime",
        "label": "MIME type output",
        "type": "boolean",
        "option": [
          "--mime",
          "-I"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "extension",
        "label": "Print valid extensions",
        "type": "boolean",
        "option": [
          "--extension"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "keep_going",
        "label": "Keep going after first match",
        "type": "boolean",
        "option": [
          "--keep-going",
          "-k"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "dereference",
        "label": "Follow symlinks",
        "type": "boolean",
        "option": [
          "--dereference",
          "-L"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_dereference",
        "label": "Do not follow symlinks",
        "type": "boolean",
        "option": [
          "--no-dereference",
          "-h"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "separator",
        "label": "Filename separator",
        "type": "string",
        "option": [
          "--separator",
          "-F"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "files_from",
        "label": "Read file names from",
        "type": "path",
        "option": [
          "--files-from",
          "-f"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "magic_file",
        "label": "Magic file list",
        "type": "string",
        "option": [
          "--magic-file",
          "-m"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "identify",
        "label": "Identify files",
        "fields": [
          "files",
          "brief"
        ],
        "required": [
          "files"
        ]
      },
      {
        "id": "mime-type",
        "label": "Show MIME type",
        "set": {
          "mime": [
            true
          ],
          "brief": [
            true
          ]
        },
        "fields": [
          "files",
          "mime",
          "brief"
        ],
        "required": [
          "files"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "brief",
          "mime",
          "extension"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "keep_going",
          "dereference",
          "no_dereference",
          "separator",
          "files_from",
          "magic_file"
        ]
      }
    ]
  }
}
