{
  "id": "wget",
  "name": "GNU Wget",
  "homepage": "https://www.gnu.org/software/wget/",
  "description": "GNU Wget is a free software package for retrieving files using HTTP, HTTPS, FTP and FTPS.",
  "executables": [
    "wget"
  ],
  "dotfiles": {
    "paths": [
      "~/.wgetrc"
    ],
    "exclude": [],
    "secret": [
      "~/.netrc"
    ],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "~/.wgetrc",
        "match": {
          "prefix": [
            "password",
            "http_password",
            "ftp_password",
            "proxy_password"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": "~/.wgetrc",
        "match": {
          "prefix": [
            "ca_certificate",
            "ca_directory"
          ]
        },
        "scope": "platform"
      },
      {
        "file": "~/.wgetrc",
        "match": {
          "prefix": [
            "dir_prefix",
            "logfile"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Download with wget",
    "description": "Download one or more URLs, optionally recursively. Authentication, cookies, FTP and certificate options are left out.",
    "quality": "ai-draft",
    "base": "fig:wget",
    "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/wget.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "urls",
        "label": "URLs",
        "type": "url",
        "position": 0,
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "output_document",
        "label": "Output file",
        "type": "path",
        "option": [
          "-O"
        ],
        "path": {
          "kind": "file",
          "role": "output"
        },
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "directory_prefix",
        "label": "Save into directory",
        "type": "path",
        "option": [
          "-P"
        ],
        "path": {
          "kind": "directory",
          "role": "output"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "continue",
        "label": "Resume partial download",
        "type": "boolean",
        "option": [
          "--continue",
          "-c"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_clobber",
        "label": "Skip existing files",
        "type": "boolean",
        "option": [
          "--no-clobber"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "recursive",
        "label": "Recursive",
        "type": "boolean",
        "option": [
          "--recursive",
          "-r"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "level",
        "label": "Recursion depth",
        "description": "Maximum depth, or inf for unlimited.",
        "type": "string",
        "option": [
          "-l"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_parent",
        "label": "Do not ascend to parent",
        "type": "boolean",
        "option": [
          "--no-parent"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "mirror",
        "label": "Mirror site",
        "type": "boolean",
        "option": [
          "--mirror",
          "-m"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "page_requisites",
        "label": "Get page requisites",
        "type": "boolean",
        "option": [
          "--page-requisites",
          "-p"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "convert_links",
        "label": "Convert links for local viewing",
        "type": "boolean",
        "option": [
          "--convert-links",
          "-k"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "accept",
        "label": "Accepted extensions",
        "description": "Comma-separated list.",
        "type": "string",
        "option": [
          "-A"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "tries",
        "label": "Retries",
        "type": "integer",
        "option": [
          "-t"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "user_agent",
        "label": "User agent",
        "type": "string",
        "option": [
          "-U"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "type": "boolean",
        "option": [
          "--quiet",
          "-q"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "spider",
        "label": "Check only, do not download",
        "type": "boolean",
        "option": [
          "--spider"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "download",
        "label": "Download files",
        "fields": [
          "urls",
          "directory_prefix",
          "continue",
          "no_clobber"
        ],
        "required": [
          "urls"
        ]
      },
      {
        "id": "save_as",
        "label": "Download to a file",
        "fields": [
          "urls",
          "output_document",
          "continue"
        ],
        "required": [
          "urls",
          "output_document"
        ]
      },
      {
        "id": "mirror",
        "label": "Mirror a site",
        "fields": [
          "urls",
          "mirror",
          "convert_links",
          "page_requisites",
          "no_parent"
        ],
        "required": [
          "urls"
        ],
        "set": {
          "mirror": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "urls",
          "output_document",
          "directory_prefix",
          "continue",
          "no_clobber",
          "mirror"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "level",
          "accept",
          "tries",
          "user_agent",
          "quiet",
          "spider",
          "recursive",
          "no_parent",
          "page_requisites",
          "convert_links"
        ]
      }
    ]
  }
}
