feat: update usage recommendations across multiple workflow commands to require user confirmation and improve clarity

This commit is contained in:
catlog22
2026-02-01 22:04:26 +08:00
parent 5fb910610a
commit 7dcc0a1c05
70 changed files with 4420 additions and 1108 deletions

View File

@@ -11,6 +11,7 @@ interface ServeOptions {
host?: string;
browser?: boolean;
frontend?: 'js' | 'react' | 'both';
new?: boolean;
}
/**
@@ -20,7 +21,8 @@ interface ServeOptions {
export async function serveCommand(options: ServeOptions): Promise<void> {
const port = Number(options.port) || 3456;
const host = options.host || '127.0.0.1';
const frontend = options.frontend || 'js';
// --new flag is shorthand for --frontend react
const frontend = options.new ? 'react' : (options.frontend || 'js');
// Validate project path
let initialPath = process.cwd();