routeStart

tcmts.cli.commands.routeStart · #b2ywq2wr · term · runs anywhere

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

export const routeStart = () =>
  command(
    name("start"),
    argument(name("app"), schema(text(null))),
    port(8080),
    option(name("host"), schema(text("127.0.0.1"))),
    ...tls,
    option(name("keep"), schema(count(null))),
    http,
    option(name("base"), schema(text(null))),
  )

uses

used by