runCheck
uses tcmts.cli.main.execute, which uses tcmts.cli.help.usageError, which uses tcmts.cli.help.usageOf, which uses tcmts.cli.style.bold, which uses node:util
Runs tcm check.
import { routeCheck } from "#codebase/tcmts/cli/commands"; import { check, checkInto, execute } from "#codebase/tcmts/cli/main"; import type { Context } from "#codebase/tcmts/cli/run"; import { parse } from "@bomb.sh/router"; export function runCheck({ cb, cmd, rest, scratch }: Context): number { const { model } = execute(cmd, parse(routeCheck(), { argv: rest })); // each file in turn (none: the codebase's scratch.ts) let ok = true; for (const f of model.files.length ? model.files : [undefined]) ok = check(cb, scratch(f), checkInto(model.into), model.fresh) && ok; return ok ? 0 : 1; }
uses
- tcmts.cli.commands.routeCheck
- tcmts.cli.main.check
- tcmts.cli.main.checkInto
- tcmts.cli.main.execute
- tcmts.cli.run.Context