routeServe

tcmts.cli.commands.routeServe · #wsvhi4vv · term · runs anywhere

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

export const routeServe = () =>
  command(
    name("serve"),
    port(7737),
    option(name("host"), schema(text("127.0.0.1"))),
    option(name("token"), schema(text(null))),
    toggle(name("run"), schema(on)),
    ...tls,
    toggle(name("insecure")),
    toggle(name("public")),
    option(name("site"), schema(text(null))),
    option(name("moved"), schema(text(null))),
    option(name("proxy"), schema(list)),
  )

uses

used by