{
  "id": "xdg-mime",
  "name": "xdg-mime",
  "description": "Queries and sets file type associations on Linux desktops.",
  "executables": [
    "xdg-mime"
  ],
  "platforms": [
    "linux"
  ],
  "commands": {
    "format": 1,
    "label": "File type associations",
    "description": "Query or set the default application for a MIME type.",
    "quality": "ai-draft",
    "base": "fig:xdg-mime",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/xdg-mime.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "query"
        ],
        "label": "Query file type info",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/xdg-mime.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "what",
            "label": "Query",
            "description": "Use `filetype <file>` or `default <mimetype>`.",
            "type": "string",
            "position": 0,
            "multiple": true,
            "min": 1,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "query",
            "label": "Query",
            "fields": [
              "what"
            ],
            "required": [
              "what"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "what"
            ]
          }
        ]
      },
      {
        "path": [
          "default"
        ],
        "label": "Set default application",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/xdg-mime.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "application",
            "label": "Application (.desktop file)",
            "type": "string",
            "position": 0,
            "min": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "mimetypes",
            "label": "MIME types",
            "type": "string",
            "position": 1,
            "multiple": true,
            "min": 1,
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "default",
            "label": "Set default",
            "fields": [
              "application",
              "mimetypes"
            ],
            "required": [
              "application",
              "mimetypes"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "application",
              "mimetypes"
            ]
          }
        ]
      }
    ]
  }
}
