{
  "id": "alot",
  "name": "Alot",
  "homepage": "https://alot.readthedocs.io/",
  "description": "Alot is a terminal-based mail user agent for the notmuch mail system.",
  "executables": [
    "alot"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/alot/config",
      "~/.config/alot/hooks.py",
      "[configHome]/alot/themes/",
      "[configHome]/alot/templates/",
      "~/.mailcap"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Start alot",
    "description": "Open alot, optionally with a search query or compose. Debug-level and log options are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "manpage",
        "kind": "manual",
        "url": "https://manpages.debian.org/unstable/alot/alot.1.en.html",
        "revision": "0.12-3",
        "evidence": "alot [options …] [subcommand]\n-r, --read-only\nopen notmuch database in read-only mode\n-c FILENAME, --config=FILENAME\nconfiguration file (default: ~/.config/alot/config)\n-n FILENAME, --notmuch-config=FILENAME\nnotmuch configuration file (default: see notmuch-config(1))\n-C COLOURS, --colour-mode=COLOURS\nnumber of colours to use on the terminal; must be 1, 16 or 256\n-p PATH, --mailindex-path=PATH\npath to notmuch index\nsearch\nstart in a search buffer using the query string provided as parameter\ncompose\ncompose a new message\nbufferlist\ntaglist\nnamedqueries\n"
      }
    ],
    "field": [
      {
        "id": "read_only",
        "label": "Read-only database",
        "type": "boolean",
        "option": [
          "--read-only",
          "-r"
        ],
        "sources": [
          "manpage"
        ]
      },
      {
        "id": "config",
        "label": "Config file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "--config",
          "-c"
        ],
        "sources": [
          "manpage"
        ]
      },
      {
        "id": "notmuch_config",
        "label": "Notmuch config file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "--notmuch-config",
          "-n"
        ],
        "sources": [
          "manpage"
        ]
      },
      {
        "id": "colour_mode",
        "label": "Colours",
        "type": "enum",
        "choices": [
          {
            "value": "1",
            "label": "1"
          },
          {
            "value": "16",
            "label": "16"
          },
          {
            "value": "256",
            "label": "256"
          }
        ],
        "option": [
          "--colour-mode",
          "-C"
        ],
        "sources": [
          "manpage"
        ]
      },
      {
        "id": "mailindex_path",
        "label": "Notmuch index path",
        "type": "path",
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "option": [
          "--mailindex-path",
          "-p"
        ],
        "sources": [
          "manpage"
        ]
      },
      {
        "id": "subcommand",
        "label": "Start in",
        "type": "enum",
        "choices": [
          {
            "value": "search",
            "label": "Search"
          },
          {
            "value": "compose",
            "label": "Compose"
          },
          {
            "value": "bufferlist",
            "label": "Buffer list"
          },
          {
            "value": "taglist",
            "label": "Tag list"
          },
          {
            "value": "namedqueries",
            "label": "Named queries"
          }
        ],
        "position": 0,
        "sources": [
          "manpage"
        ]
      },
      {
        "id": "query",
        "label": "Search query",
        "description": "Only used with Start in = Search.",
        "type": "string",
        "position": 1,
        "sources": [
          "manpage"
        ]
      }
    ],
    "task": [
      {
        "id": "search",
        "label": "Search mail",
        "fields": [
          "subcommand",
          "query"
        ],
        "required": [
          "subcommand",
          "query"
        ],
        "set": {
          "subcommand": [
            "search"
          ]
        }
      },
      {
        "id": "read_only",
        "label": "Browse read-only",
        "fields": [
          "read_only"
        ],
        "required": [
          "read_only"
        ],
        "set": {
          "read_only": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "subcommand",
          "query",
          "read_only"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "config",
          "notmuch_config",
          "colour_mode",
          "mailindex_path"
        ]
      }
    ]
  }
}
