@@ -19,40 +19,41 @@ process.on("SIGINT", () => {
1919const program = new Command ( ) ;
2020
2121async function main ( ) {
22+ program
23+ . name ( "create-better-t-stack" )
24+ . description ( "Create a new Better-T Stack project" )
25+ . version ( getVersion ( ) )
26+ . argument ( "[project-directory]" , "Project name/directory" )
27+ . option ( "-y, --yes" , "Use default configuration" )
28+ . option ( "--no-database" , "Skip database setup" )
29+ . option ( "--sqlite" , "Use SQLite database" )
30+ . option ( "--postgres" , "Use PostgreSQL database" )
31+ . option ( "--auth" , "Include authentication" )
32+ . option ( "--no-auth" , "Exclude authentication" )
33+ . option ( "--docker" , "Include Docker setup" )
34+ . option ( "--github-actions" , "Include GitHub Actions" )
35+ . option ( "--seo" , "Include SEO setup" )
36+ . option ( "--no-features" , "Skip all additional features" )
37+ . option ( "--git" , "Include git setup" )
38+ . option ( "--no-git" , "Skip git initialization" )
39+ . option ( "--npm" , "Use npm package manager" )
40+ . option ( "--pnpm" , "Use pnpm package manager" )
41+ . option ( "--yarn" , "Use yarn package manager" )
42+ . option ( "--bun" , "Use bun package manager" )
43+ . option ( "--drizzle" , "Use Drizzle ORM" )
44+ . option ( "--prisma" , "Use Prisma ORM (coming soon)" )
45+ . option ( "--install" , "Install dependencies" )
46+ . option ( "--no-install" , "Skip installing dependencies" )
47+ . option ( "--turso" , "Set up Turso for SQLite database" )
48+ . option ( "--no-turso" , "Skip Turso setup for SQLite database" )
49+ . parse ( ) ;
50+
2251 const s = spinner ( ) ;
52+
2353 try {
2454 renderTitle ( ) ;
2555 intro ( pc . magenta ( "Creating a new Better-T-Stack project" ) ) ;
2656
27- program
28- . name ( "create-better-t-stack" )
29- . description ( "Create a new Better-T Stack project" )
30- . version ( getVersion ( ) )
31- . argument ( "[project-directory]" , "Project name/directory" )
32- . option ( "-y, --yes" , "Use default configuration" )
33- . option ( "--no-database" , "Skip database setup" )
34- . option ( "--sqlite" , "Use SQLite database" )
35- . option ( "--postgres" , "Use PostgreSQL database" )
36- . option ( "--auth" , "Include authentication" )
37- . option ( "--no-auth" , "Exclude authentication" )
38- . option ( "--docker" , "Include Docker setup" )
39- . option ( "--github-actions" , "Include GitHub Actions" )
40- . option ( "--seo" , "Include SEO setup" )
41- . option ( "--no-features" , "Skip all additional features" )
42- . option ( "--git" , "Include git setup" )
43- . option ( "--no-git" , "Skip git initialization" )
44- . option ( "--npm" , "Use npm package manager" )
45- . option ( "--pnpm" , "Use pnpm package manager" )
46- . option ( "--yarn" , "Use yarn package manager" )
47- . option ( "--bun" , "Use bun package manager" )
48- . option ( "--drizzle" , "Use Drizzle ORM" )
49- . option ( "--prisma" , "Use Prisma ORM (coming soon)" )
50- . option ( "--install" , "Install dependencies" )
51- . option ( "--no-install" , "Skip installing dependencies" )
52- . option ( "--turso" , "Set up Turso for SQLite database" )
53- . option ( "--no-turso" , "Skip Turso setup for SQLite database" )
54- . parse ( ) ;
55-
5657 const options = program . opts ( ) ;
5758 const projectDirectory = program . args [ 0 ] ;
5859
0 commit comments