{
  "id": "man-db",
  "name": "man-db",
  "homepage": "https://man-db.gitlab.io/man-db/",
  "description": "man-db is an implementation of the standard Unix documentation system accessed using the man command.",
  "executables": [
    "man",
    "manpath",
    "mandb",
    "apropos",
    "whatis"
  ],
  "platforms": [
    "linux",
    "macos"
  ],
  "dotfiles": {
    "paths": [
      "~/.manpath"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "machine_lines": [
      {
        "file": "~/.manpath",
        "match": {
          "prefix": [
            "MANDATORY_MANPATH",
            "MANPATH_MAP",
            "MANDB_MAP"
          ]
        },
        "scope": "platform"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Read manual page",
    "description": "Show or locate manual pages. Config file, browser, preprocessor and troff options are left out.",
    "quality": "ai-draft",
    "base": "fig:man",
    "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/man.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "page",
        "label": "Page names",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "sections",
        "label": "Sections to search",
        "description": "Colon-separated list, for example 1:3.",
        "type": "string",
        "option": [
          "-S"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "all",
        "label": "Open every matching page",
        "type": "boolean",
        "option": [
          "-a"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "path",
        "label": "Print file location only",
        "type": "boolean",
        "option": [
          "-w",
          "--path"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "whatis",
        "label": "Short description (whatis)",
        "type": "boolean",
        "option": [
          "-f"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "apropos",
        "label": "Search descriptions (apropos)",
        "type": "boolean",
        "option": [
          "-k"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "pager",
        "label": "Pager program",
        "type": "string",
        "option": [
          "-P"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "read",
        "label": "Read a page",
        "fields": [
          "page",
          "sections"
        ],
        "required": [
          "page"
        ]
      },
      {
        "id": "search",
        "label": "Search descriptions",
        "fields": [
          "page",
          "apropos"
        ],
        "required": [
          "page"
        ],
        "set": {
          "apropos": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "page",
          "sections",
          "all",
          "path"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "whatis",
          "apropos",
          "pager"
        ]
      }
    ]
  }
}
