routeLib

tcmts.cli.commands.routeLib · #k5udqmf4 · term · runs anywhere

import { message, text } from "#codebase/tcmts/cli/commands";
import { argument, command, name, option, schema, toggle } from "@bomb.sh/router";

export const routeLib = () =>
  command(
    name("lib"),
    command(
      name("add"),
      argument(name("source"), schema(text())),
      argument(name("what"), schema(text(null))),
      option(name("as"), schema(text(null))),
      option(name("at"), schema(text(null))),
    ),
    command(name("rm"), argument(name("library"), schema(text()))),
    command(
      name("sources"),
      argument(name("library"), schema(text())),
      option(name("add"), schema(text(null))),
      option(name("rm"), schema(text(null))),
    ),
    command(
      name("upgrade"),
      argument(name("library"), schema(text())),
      argument(name("what"), schema(text(null))),
      option(name("source"), schema(text(null))),
      toggle(name("check")),
    ),
    command(
      name("attest"),
      argument(name("what"), schema(text())),
      argument(name("kind"), schema(text())),
      message,
      option(name("severity"), schema(text(null))),
      option(name("fixed-in"), schema(text(null))),
      option(name("as"), schema(text(null))),
    ),
    command(
      name("search"),
      argument(name("query"), schema(text())),
      option(name("registry"), schema(text(null))),
    ),
    command(
      name("trust"),
      option(name("add"), schema(text(null))),
      option(name("rm"), schema(text(null))),
    ),
  )

uses

used by