feat(cli): add disable analytics option (#496)

This commit is contained in:
Aman Varshney
2025-08-12 08:21:26 +05:30
committed by GitHub
parent 75b0919399
commit 3c00c5453f
7 changed files with 46 additions and 3 deletions

View File

@@ -90,6 +90,11 @@ export const router = t.router({
webDeploy: WebDeploySchema.optional(),
directoryConflict: DirectoryConflictSchema.optional(),
renderTitle: z.boolean().optional(),
disableAnalytics: z
.boolean()
.optional()
.default(false)
.describe("Disable analytics"),
}),
]),
)
@@ -198,6 +203,7 @@ export function createBtsCli() {
* packageManager: "bun",
* install: false,
* directoryConflict: "increment", // auto-handle conflicts
* disableAnalytics: true, // disable analytics
* });
*
* if (result.success) {