{
  "id": "apt",
  "name": "APT",
  "description": "Package manager for Debian-based Linux distributions.",
  "executables": [
    "apt"
  ],
  "platforms": [
    "linux"
  ],
  "commands": {
    "format": 1,
    "label": "Package manager",
    "description": "Install packages and search or list them. Other subcommands are left out.",
    "quality": "ai-draft",
    "base": "fig:apt",
    "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/apt.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "install"
        ],
        "label": "Install packages",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/apt.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "packages",
            "label": "Packages",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "yes",
            "label": "Assume yes",
            "type": "boolean",
            "option": [
              "-y"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "simulate",
            "label": "Simulate only",
            "type": "boolean",
            "option": [
              "-s",
              "--simulate"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "reinstall",
            "label": "Reinstall",
            "type": "boolean",
            "option": [
              "--reinstall"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "fix_broken",
            "label": "Fix broken",
            "type": "boolean",
            "option": [
              "-f",
              "--fix-broken"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "install",
            "label": "Install",
            "fields": [
              "packages",
              "yes"
            ],
            "required": [
              "packages"
            ]
          },
          {
            "id": "preview",
            "label": "Preview install",
            "fields": [
              "packages",
              "simulate"
            ],
            "required": [
              "packages"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "packages",
              "yes",
              "simulate",
              "reinstall",
              "fix_broken"
            ]
          }
        ]
      },
      {
        "path": [
          "search"
        ],
        "label": "Search packages",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/apt.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "query",
            "label": "Query",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "search",
            "label": "Search",
            "fields": [
              "query"
            ],
            "required": [
              "query"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "query"
            ]
          }
        ]
      },
      {
        "path": [
          "list"
        ],
        "label": "List packages",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/apt.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "installed",
            "label": "Installed only",
            "type": "boolean",
            "option": [
              "--installed"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "upgradable",
            "label": "Upgradable only",
            "type": "boolean",
            "option": [
              "--upgradable"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "upgradable",
            "label": "Show upgradable",
            "fields": [
              "upgradable"
            ],
            "required": [
              "upgradable"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "installed",
              "upgradable"
            ]
          }
        ]
      }
    ]
  }
}
