diff --git a/.changeset/small-toys-fly.md b/.changeset/small-toys-fly.md new file mode 100644 index 00000000..34027402 --- /dev/null +++ b/.changeset/small-toys-fly.md @@ -0,0 +1,7 @@ +--- +'task-master-ai': patch +--- + +Small fixes + - `next` command no longer incorrectly suggests that subtasks be broken down into subtasks in the CLI + - fixes the `append` flag so it properly works in the CLI diff --git a/scripts/modules/commands.js b/scripts/modules/commands.js index 58bad68a..a020315f 100644 --- a/scripts/modules/commands.js +++ b/scripts/modules/commands.js @@ -516,8 +516,8 @@ function registerCommands(programInstance) { const outputPath = options.output; const force = options.force || false; const append = options.append || false; - let useForce = false; - let useAppend = false; + let useForce = force; + let useAppend = append; // Helper function to check if tasks.json exists and confirm overwrite async function confirmOverwriteIfNeeded() { @@ -547,8 +547,8 @@ function registerCommands(programInstance) { console.log(chalk.blue(`Generating ${numTasks} tasks...`)); spinner = ora('Parsing PRD and generating tasks...').start(); await parsePRD(defaultPrdPath, outputPath, numTasks, { - useAppend, - useForce + append: useAppend, // Changed key from useAppend to append + force: useForce // Changed key from useForce to force }); spinner.succeed('Tasks generated successfully!'); return; @@ -609,8 +609,8 @@ function registerCommands(programInstance) { spinner = ora('Parsing PRD and generating tasks...').start(); await parsePRD(inputFile, outputPath, numTasks, { - append: useAppend, - force: useForce + useAppend: useAppend, + useForce: useForce }); spinner.succeed('Tasks generated successfully!'); } catch (error) {