runDiff
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 diff.
import { routeDiff } from "#codebase/tcmts/cli/commands"; import { diff, execute } from "#codebase/tcmts/cli/main"; import type { Context } from "#codebase/tcmts/cli/run"; import { parse } from "@bomb.sh/router"; export function runDiff({ cb, cmd, rest }: Context): number { const { model } = execute(cmd, parse(routeDiff(), { argv: rest })); diff(cb, model.refs); return 0; }