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 } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/pageres.ts" license = "MIT" [[commands.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"] [[commands.field]] id = "crop" label = "Crop to height" type = "boolean" option = ["--crop"] sources = ["fig"] [[commands.field]] id = "delay" label = "Delay (seconds)" type = "string" option = ["--delay"] sources = ["fig"] [[commands.field]] id = "filename" label = "Filename template" type = "string" option = ["--filename"] sources = ["fig"] [[commands.field]] id = "selector" label = "Capture element" type = "string" option = ["--selector"] sources = ["fig"] [[commands.field]] id = "scale" label = "Scale" type = "number" option = ["--scale"] sources = ["fig"] [[commands.field]] id = "format" label = "Image format" type = "enum" option = ["--format"] choices = [{ value = "png", label = "PNG" }, { value = "jpg", label = "JPG" }] sources = ["fig"] [[commands.field]] id = "overwrite" label = "Overwrite existing file" type = "boolean" option = ["--overwrite"] effect = "overwrite" sources = ["fig"] [[commands.field]] id = "transparent" label = "Transparent background" type = "boolean" option = ["--transparent"] sources = ["fig"] [[commands.task]] id = "capture" label = "Capture a page" fields = ["targets", "format", "scale"] required = ["targets"] [[commands.group]] id = "basic" label = "Basic" fields = ["targets", "format", "scale"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["crop", "delay", "filename", "selector", "overwrite", "transparent"]