{
  "id": "irssi",
  "name": "irssi",
  "homepage": "https://irssi.org",
  "description": "Irssi is a modular text mode chat client.",
  "icon": "https://raw.githubusercontent.com/irssi/irssi/master/irssi-icon.png",
  "executables": [
    "irssi"
  ],
  "dotfiles": {
    "paths": [
      "~/.irssi/"
    ],
    "exclude": [
      "~/.irssi/away.log",
      "~/.irssi/config.autosave"
    ],
    "secret": [],
    "secret_paths": [
      {
        "file": "~/.irssi/config",
        "match": {
          "prefix": [
            "password",
            "tls_pass",
            "sasl_password"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": "~/.irssi/config",
        "match": {
          "prefix": [
            "tls_cert",
            "tls_pkey",
            "own_host"
          ]
        },
        "scope": "backup"
      },
      {
        "file": "~/.irssi/config",
        "match": {
          "prefix": [
            "tls_cafile",
            "tls_capath"
          ]
        },
        "scope": "platform"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Start Irssi",
    "description": "Start the IRC client with an optional server, nick and config location. Passing a password on the command line exposes it in the process list.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://raw.githubusercontent.com/irssi/irssi/master/docs/irssi.1",
        "revision": "irssi.1 June 2015",
        "evidence": "irssi [--config=PATH] [--home=PATH] [-dv!?] [-c server] [-p port] [-n nickname] [-w password] [-h hostname]\n--config=FILE use FILE instead of ~/.irssi/config\n--home=PATH PATH specifies the home directory of Irssi; default is ~/.irssi\n-c, --connect=SERVER connect to SERVER\n-w, --password=PASSWORD use PASSWORD for authentication.\n-p, --port=PORT automatically connect to PORT on server.\n-!, --noconnect disable autoconnecting of servers\n-n, --nick=NICKNAME specify NICKNAME as your nick\n-h, --hostname=HOSTNAME use HOSTNAME for your irc session\n"
      }
    ],
    "field": [
      {
        "id": "connect",
        "label": "Server",
        "type": "string",
        "option": [
          "--connect",
          "-c"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "port",
        "label": "Port",
        "type": "integer",
        "option": [
          "--port",
          "-p"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "nick",
        "label": "Nickname",
        "type": "string",
        "option": [
          "--nick",
          "-n"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "password",
        "label": "Password",
        "description": "Visible in the process list while Irssi runs.",
        "type": "string",
        "option": [
          "--password",
          "-w"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "hostname",
        "label": "Local hostname",
        "type": "string",
        "option": [
          "--hostname",
          "-h"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "noconnect",
        "label": "Do not autoconnect",
        "type": "boolean",
        "option": [
          "--noconnect",
          "-!"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "config",
        "label": "Config file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "--config"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "home",
        "label": "Irssi home directory",
        "type": "path",
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "option": [
          "--home"
        ],
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "connect",
        "label": "Connect to a server",
        "fields": [
          "connect",
          "port",
          "nick"
        ],
        "required": [
          "connect"
        ]
      },
      {
        "id": "no-autoconnect",
        "label": "Start without autoconnect",
        "set": {
          "noconnect": [
            true
          ]
        },
        "lock": [
          "noconnect"
        ],
        "fields": [
          "noconnect",
          "config",
          "home"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "connect",
          "port",
          "nick",
          "noconnect"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "config",
          "home",
          "hostname",
          "password"
        ]
      }
    ]
  }
}
