Handler

tcmts.cli.run.Handler · #y2ei7kyo · type

How a command runs: with the codebase opened (run), or before it is (alone: the command finds the codebase itself, if it needs one, as tcm init and tcm migrate must).

import type { Context, Started } from "#codebase/tcmts/cli/run";

export type Handler =
  | { run: (cx: Context) => number | Promise<number> }
  | { alone: (cx: Started) => number | Promise<number> };

uses

used by