routeSearch

tcmts.cli.commands.routeSearch · #x3tkec7b · term · runs anywhere

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

export const routeSearch = () =>
  command(
    name("search"),
    argument(name("text"), multiple(), schema(words)),
    toggle(name("regex")),
    toggle(name("case")),
    toggle(name("word")),
    option(name("under"), schema(text(null))),
    option(name("limit"), schema(text(null))),
    readBranch,
  )

uses

used by