runWatch
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 watch.
import { routeWatch } from "#codebase/tcmts/cli/commands"; import { checkInto, execute, watch } from "#codebase/tcmts/cli/main"; import type { Context } from "#codebase/tcmts/cli/run"; import { parse } from "@bomb.sh/router"; export function runWatch({ cb, cmd, rest }: Context): number { const { model } = execute(cmd, parse(routeWatch(), { argv: rest })); watch(cb, checkInto(model.into), model.fresh); return -1; // keep running }
uses
- tcmts.cli.commands.routeWatch
- tcmts.cli.main.checkInto
- tcmts.cli.main.execute
- tcmts.cli.main.watch
- tcmts.cli.run.Context