routeContribution

tcmts.cli.commands.routeContribution · #q2t4i4wy · term · runs anywhere

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

export const routeContribution = () =>
  command(
    name("contribution"),
    remote,
    toggle(name("all")),
    command(name("view"), contributionId, remote),
    command(
      name("comment"),
      contributionId,
      argument(name("text"), multiple(), schema(words)),
      option(name("about"), schema(text(null))),
      remote,
    ),
    command(name("merge"), contributionId, remote),
    command(name("close"), contributionId, remote),
    command(name("reopen"), contributionId, remote),
  )

uses

used by