runTodo

tcmts.cli.run.runTodo · #7alnguck · term · runs on the server

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 todo.

import { routeTodo } from "#codebase/tcmts/cli/commands";
import { execute, todo } from "#codebase/tcmts/cli/main";
import type { Context } from "#codebase/tcmts/cli/run";
import { parse } from "@bomb.sh/router";

export function runTodo({ cb, cmd, rest }: Context): number {
  const { model } = execute(cmd, parse(routeTodo(), { argv: rest }));
  todo(cb, model.all);
  return 0;
}

uses

used by