diff --git a/tools/cli/lib/installer.js b/tools/cli/lib/installer.js index 9b7b2d576..c1bd13fb9 100644 --- a/tools/cli/lib/installer.js +++ b/tools/cli/lib/installer.js @@ -176,7 +176,7 @@ class Installer { starting_point: config.starting_point || 'brief', communication_language: 'en', document_output_language: 'en', - output_folder: 'design-process', + output_folder: config.root_folder || 'design-process', wds_folder: config.wdsFolder, }; @@ -291,7 +291,7 @@ class Installer { '{{user_name}}': config.user_name || 'Designer', '{{communication_language}}': 'en', '{{document_output_language}}': 'en', - '{{output_folder}}': 'design-process', + '{{output_folder}}': config.root_folder || 'design-process', '{{wds_folder}}': config.wdsFolder || '_wds', }; @@ -351,7 +351,7 @@ class Installer { '{{user_name}}': config.user_name || 'Designer', '{{communication_language}}': 'en', '{{document_output_language}}': 'en', - '{{output_folder}}': 'design-process', + '{{output_folder}}': config.root_folder || 'design-process', '{{wds_folder}}': config.wdsFolder || '_wds', }; diff --git a/tools/cli/lib/ui.js b/tools/cli/lib/ui.js index cd19d9acc..1898a1412 100644 --- a/tools/cli/lib/ui.js +++ b/tools/cli/lib/ui.js @@ -34,7 +34,7 @@ class UI { console.log(chalk.white(` Target: ${chalk.cyan(projectDir)}`)); console.log(chalk.dim(` Agents and workflows will be installed in ${chalk.white('_wds/')}\n`)); - // Minimal 2-question installer + // Minimal 3-question installer const answers = await inquirer.prompt([ { type: 'input', @@ -52,13 +52,18 @@ class UI { ], default: 'brief', }, + { + type: 'input', + name: 'root_folder', + message: 'Output folder name:', + default: 'design-process', + }, ]); return { projectDir, ...answers, wdsFolder: '_wds', - root_folder: 'design-process', cancelled: false, }; }