removeLib

tcmts.studio.removeLib · #2xv7l5wn · term · runs on the server

uses tcmts.studio.editableCodebase, which uses tcmts.share.servedCodebase, which uses process

Remove the library library, as tcm lib rm does: its names, and its entry in the record beside it. What it said.

import { editableCodebase, runTcm, tcmSaid } from "#codebase/tcmts/studio";

export async function removeLib(library: string): Promise<string> {
  const cb = editableCodebase();
  return tcmSaid(
    await runTcm(cb.lay.root, ["lib", "rm", library], { branch: true }),
    `tcm lib rm ${library}`,
  );
}

uses

used by