fix(parse-prd): resolves issue preventing --append flag from properly working in the CLI context. Adds changeset.
This commit is contained in:
7
.changeset/small-toys-fly.md
Normal file
7
.changeset/small-toys-fly.md
Normal file
@@ -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
|
||||||
@@ -516,8 +516,8 @@ function registerCommands(programInstance) {
|
|||||||
const outputPath = options.output;
|
const outputPath = options.output;
|
||||||
const force = options.force || false;
|
const force = options.force || false;
|
||||||
const append = options.append || false;
|
const append = options.append || false;
|
||||||
let useForce = false;
|
let useForce = force;
|
||||||
let useAppend = false;
|
let useAppend = append;
|
||||||
|
|
||||||
// Helper function to check if tasks.json exists and confirm overwrite
|
// Helper function to check if tasks.json exists and confirm overwrite
|
||||||
async function confirmOverwriteIfNeeded() {
|
async function confirmOverwriteIfNeeded() {
|
||||||
@@ -547,8 +547,8 @@ function registerCommands(programInstance) {
|
|||||||
console.log(chalk.blue(`Generating ${numTasks} tasks...`));
|
console.log(chalk.blue(`Generating ${numTasks} tasks...`));
|
||||||
spinner = ora('Parsing PRD and generating tasks...').start();
|
spinner = ora('Parsing PRD and generating tasks...').start();
|
||||||
await parsePRD(defaultPrdPath, outputPath, numTasks, {
|
await parsePRD(defaultPrdPath, outputPath, numTasks, {
|
||||||
useAppend,
|
append: useAppend, // Changed key from useAppend to append
|
||||||
useForce
|
force: useForce // Changed key from useForce to force
|
||||||
});
|
});
|
||||||
spinner.succeed('Tasks generated successfully!');
|
spinner.succeed('Tasks generated successfully!');
|
||||||
return;
|
return;
|
||||||
@@ -609,8 +609,8 @@ function registerCommands(programInstance) {
|
|||||||
|
|
||||||
spinner = ora('Parsing PRD and generating tasks...').start();
|
spinner = ora('Parsing PRD and generating tasks...').start();
|
||||||
await parsePRD(inputFile, outputPath, numTasks, {
|
await parsePRD(inputFile, outputPath, numTasks, {
|
||||||
append: useAppend,
|
useAppend: useAppend,
|
||||||
force: useForce
|
useForce: useForce
|
||||||
});
|
});
|
||||||
spinner.succeed('Tasks generated successfully!');
|
spinner.succeed('Tasks generated successfully!');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user