routeShot
tcmts.cli.commands.routeShot · #oih3tqeq · function · runs anywhere
import { count, text, valid } from "#codebase/tcmts/cli/commands";
import { argument, command, name, option, schema } from "@bomb.sh/router";
export const routeShot = () =>
command(
name("shot"),
argument(name("url"), schema(text())),
// (one width alone is read as a number)
option(
name("width"),
schema(
valid<string[]>((v) => ({
value: v === undefined ? [] : String(v).split(",").filter(Boolean),
})),
),
),
option(name("out"), schema(text(null))),
option(name("wait"), schema(count(300))),
)
uses
used by