{
  "id": "urlscan",
  "name": "urlscan",
  "homepage": "https://github.com/firecat53/urlscan",
  "description": "View/select the URLs in an email message or file.",
  "executables": [
    "urlscan"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/urlscan/config.json"
    ],
    "exclude": [],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "List URLs in a message",
    "description": "Opens the URL picker for one email message, or prints the URLs with --no-browser. Custom regex, run/pipe commands and colour modes are not included.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "manual",
        "kind": "manual",
        "url": "https://manpages.debian.org/unstable/urlscan/urlscan.1.en.html",
        "revision": "1.1.2",
        "evidence": "urlscan [options] message\n-c, --compact\nCompact display mode; don't show the context of each URL.\n-d, --dedupe\nRemove duplicated URLs from the list of URLs.\n--headers\nScan certain message headers for URLs.\n-n, --no-browser\nDisables the selection interface and print the links to standard output.\n-R, --reverse\nReverse displayed order of URLs.\n-s, --single\nExit urlscan after opening or copying a single browser link.\n-w, --width\nSet display width.\n"
      }
    ],
    "field": [
      {
        "id": "message",
        "label": "Message file",
        "description": "Leave empty to read the message from standard input.",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "manual"
        ]
      },
      {
        "id": "no_browser",
        "label": "Print URLs only",
        "type": "boolean",
        "option": [
          "--no-browser",
          "-n"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "dedupe",
        "label": "Remove duplicates",
        "type": "boolean",
        "option": [
          "--dedupe",
          "-d"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "compact",
        "label": "Compact (no context)",
        "type": "boolean",
        "option": [
          "--compact",
          "-c"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "reverse",
        "label": "Reverse order",
        "type": "boolean",
        "option": [
          "--reverse",
          "-R"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "headers",
        "label": "Scan headers too",
        "type": "boolean",
        "option": [
          "--headers"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "single",
        "label": "Exit after one URL",
        "type": "boolean",
        "option": [
          "--single",
          "-s"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "width",
        "label": "Display width",
        "type": "integer",
        "option": [
          "--width",
          "-w"
        ],
        "sources": [
          "manual"
        ]
      }
    ],
    "task": [
      {
        "id": "extract",
        "label": "Print unique URLs",
        "set": {
          "no_browser": [
            true
          ],
          "dedupe": [
            true
          ]
        },
        "fields": [
          "message",
          "no_browser",
          "dedupe",
          "headers"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "message",
          "no_browser",
          "dedupe",
          "compact"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "reverse",
          "headers",
          "single",
          "width"
        ]
      }
    ]
  }
}
