runPull

tcmts.cli.run.runPull · #hxr2sx7i · 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 pull.

import { routePull } from "#codebase/tcmts/cli/commands";
import { execute } from "#codebase/tcmts/cli/main";
import type { Context } from "#codebase/tcmts/cli/run";
import { pull } from "#codebase/tcmts/cli/sync";
import { parse } from "@bomb.sh/router";

export async function runPull({ cb, cmd, rest }: Context): Promise<number> {
  const { model } = execute(cmd, parse(routePull(), { argv: rest }));
  await pull(cb, model.remote, model.branch);
  return 0;
}

uses

used by