{
  "id": "pageres",
  "name": "pageres",
  "description": "Captures website screenshots at given resolutions.",
  "homepage": "https://github.com/sindresorhus/pageres-cli",
  "executables": [
    "pageres"
  ],
  "commands": {
    "format": 1,
    "label": "Capture screenshots",
    "description": "Capture screenshots; list URLs followed by resolutions such as 1280x1024.",
    "quality": "ai-draft",
    "base": "fig:pageres",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/pageres.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "targets",
        "label": "URLs and resolutions",
        "description": "URLs or files, followed by resolutions such as 1280x1024 or 375x667.",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "crop",
        "label": "Crop to height",
        "type": "boolean",
        "option": [
          "--crop"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "delay",
        "label": "Delay (seconds)",
        "type": "string",
        "option": [
          "--delay"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "filename",
        "label": "Filename template",
        "type": "string",
        "option": [
          "--filename"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "selector",
        "label": "Capture element",
        "type": "string",
        "option": [
          "--selector"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "scale",
        "label": "Scale",
        "type": "number",
        "option": [
          "--scale"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "format",
        "label": "Image format",
        "type": "enum",
        "option": [
          "--format"
        ],
        "choices": [
          {
            "value": "png",
            "label": "PNG"
          },
          {
            "value": "jpg",
            "label": "JPG"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "overwrite",
        "label": "Overwrite existing file",
        "type": "boolean",
        "option": [
          "--overwrite"
        ],
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "transparent",
        "label": "Transparent background",
        "type": "boolean",
        "option": [
          "--transparent"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "capture",
        "label": "Capture a page",
        "fields": [
          "targets",
          "format",
          "scale"
        ],
        "required": [
          "targets"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "targets",
          "format",
          "scale"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "crop",
          "delay",
          "filename",
          "selector",
          "overwrite",
          "transparent"
        ]
      }
    ]
  }
}
