helpShot
tcmts.cli.commands.helpShot · #dntpk25q · constant · runs anywhere
import type { Help } from "#codebase/tcmts/cli/commands";
export const helpShot: Help = {
description:
"screenshot a page in headless Chrome, full length, at desktop and phone widths: each PNG's path, the page's title and what went wrong on it (console errors, uncaught errors, failed requests)",
params: {
url: "the page: a URL, a port on this machine, or an app tcm dev or start is running here (app.App)",
width: "widths in pixels, comma-separated (default 1280,390)",
out: "the directory to save into (default .tcm/shots, or tcm-shots in the temp directory outside a codebase)",
wait: "milliseconds to wait once the page has loaded and the network is quiet",
},
}
uses
used by