| 1 | #!/usr/bin/env node |
| 2 | |
| 3 | // @ts-ignore: Shebang line |
| 4 | |
| 5 | import { create } from "@/commands/create"; |
| 6 | import { program } from "@/program"; |
| 7 | import { DEFAULT_REPO } from "./utils"; |
| 8 | |
| 9 | program |
| 10 | .name("create-bhvr") |
| 11 | .description("Create a bhvr monorepo starter project") |
| 12 | .argument("[project-directory]", "directory to create the project in") |
| 13 | .option("-y, --yes", "skip confirmation prompts") |
| 14 | .option("--ts, --typescript", "use TypeScript (default)") |
| 15 | .option( |
| 16 | "--repo <repo>", |
| 17 | "specify a custom GitHub repository as source", |
| 18 | DEFAULT_REPO, |
| 19 | ) |
| 20 | .option( |
| 21 | "--template <template>", |
| 22 | "specify a template (default, tailwind, shadcn)", |
| 23 | "default", |
| 24 | ) |
| 25 | .option("--branch <branch>", "specify a branch to use from the repository") |
| 26 | .option("--rpc", "use Hono RPC client for type-safe API communication") |
| 27 | .option("--linter <linter>", "specify the linter to use (eslint or biome)") |
| 28 | .action(create); |
| 29 | |
| 30 | program.parse(); |