(template: Template | null, projectName: string)
| 91 | |
| 92 | // Helper function to show template-specific next steps |
| 93 | export function showNextSteps(template: Template | null, projectName: string) { |
| 94 | const { manager } = detectPackageManager(); |
| 95 | |
| 96 | console.log('\n' + pc.bold('🎉 Success! Your Cedar project is ready.')); |
| 97 | console.log('\n' + pc.bold('Next steps:')); |
| 98 | |
| 99 | if (template && template.includesCedar) { |
| 100 | // Get template-specific next steps |
| 101 | const steps = template.getNextSteps(projectName, manager); |
| 102 | steps.forEach((step) => { |
| 103 | console.log(pc.gray(`• ${step}`)); |
| 104 | }); |
| 105 | } else { |
| 106 | // Standard Next.js or no template |
| 107 | console.log( |
| 108 | pc.gray(`• Navigate to your project: ${pc.cyan(`cd ${projectName}`)}`) |
| 109 | ); |
| 110 | console.log( |
| 111 | pc.gray( |
| 112 | `• Start development: ${pc.cyan( |
| 113 | `${manager === 'npm' ? 'npm run dev' : `${manager} dev`}` |
| 114 | )}` |
| 115 | ) |
| 116 | ); |
| 117 | } |
| 118 | |
| 119 | console.log( |
| 120 | '\n' + |
| 121 | pc.gray('📖 Need help or want to learn more? ') + |
| 122 | pc.cyan('https://docs.cedarcopilot.com/getting-started/getting-started') |
| 123 | ); |
| 124 | } |
| 125 | |
| 126 | // Helper function to show manual installation fallback |
| 127 | export function showManualInstallation() { |
no test coverage detected