{
  "id": "newsboat",
  "name": "Newsboat",
  "homepage": "https://newsboat.org/",
  "description": "RSS/Atom feed reader for text terminals.",
  "executables": [
    "newsboat",
    "podboat"
  ],
  "dotfiles": {
    "paths": [
      "~/.newsboat/config",
      "[configHome]/newsboat/config"
    ],
    "secret": [
      "~/.newsboat/urls",
      "[configHome]/newsboat/urls"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Run newsboat",
    "description": "Start newsboat with an alternate URL file, cache or config, import or export OPML, or refresh on start. Log, read-article transfer and cache maintenance options are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "manual",
        "url": "https://newsboat.org/releases/2.42/docs/newsboat.html",
        "revision": "2.42",
        "evidence": "usage: ./newsboat [-i <file>|-e] [-u <urlfile>] [-c <cachefile>] [-x <command> ...] [-h]\n    -e, --export-to-opml            export OPML feed to stdout\n    -r, --refresh-on-start          refresh feeds on start\n    -i, --import-from-opml=<file>   import OPML file\n    -u, --url-file=<urlfile>        read RSS feed URLs from <urlfile>\n    -c, --cache-file=<cachefile>    use <cachefile> as cache file\n    -C, --config-file=<configfile>  read configuration from <configfile>\n    -q, --quiet                     quiet startup\n"
      }
    ],
    "field": [
      {
        "id": "url_file",
        "label": "URL file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "--url-file",
          "-u"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "cache_file",
        "label": "Cache file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "output"
        },
        "option": [
          "--cache-file",
          "-c"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "config_file",
        "label": "Config file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "--config-file",
          "-C"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "refresh",
        "label": "Refresh feeds on start",
        "type": "boolean",
        "option": [
          "--refresh-on-start",
          "-r"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet startup",
        "type": "boolean",
        "option": [
          "--quiet",
          "-q"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "import_opml",
        "label": "Import OPML file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "--import-from-opml",
          "-i"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "export_opml",
        "label": "Export OPML to stdout",
        "type": "boolean",
        "option": [
          "--export-to-opml",
          "-e"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "start",
        "label": "Start and refresh",
        "fields": [
          "refresh",
          "url_file",
          "config_file",
          "quiet"
        ],
        "required": [],
        "set": {
          "refresh": [
            true
          ]
        }
      },
      {
        "id": "import",
        "label": "Import OPML",
        "fields": [
          "import_opml"
        ],
        "required": [
          "import_opml"
        ]
      },
      {
        "id": "export",
        "label": "Export OPML",
        "fields": [
          "export_opml"
        ],
        "required": [
          "export_opml"
        ],
        "set": {
          "export_opml": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "refresh",
          "quiet",
          "url_file",
          "config_file",
          "cache_file",
          "import_opml",
          "export_opml"
        ]
      }
    ]
  }
}
