Fix --tasks to --num-tasks in ui (#328)
This commit is contained in:
5
.changeset/violet-papayas-see.md
Normal file
5
.changeset/violet-papayas-see.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'task-master-ai': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix --task to --num-tasks in ui + related tests - issue #324
|
||||||
@@ -393,7 +393,7 @@ function displayHelp() {
|
|||||||
commands: [
|
commands: [
|
||||||
{
|
{
|
||||||
name: 'parse-prd',
|
name: 'parse-prd',
|
||||||
args: '--input=<file.txt> [--tasks=10]',
|
args: '--input=<file.txt> [--num-tasks=10]',
|
||||||
desc: 'Generate tasks from a PRD document'
|
desc: 'Generate tasks from a PRD document'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ async function runTests() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const smallResult = execSync(
|
const smallResult = execSync(
|
||||||
`node ${path.join(__dirname, 'dev.js')} parse-prd --input=${smallPRDPath} --tasks=5`,
|
`node ${path.join(__dirname, 'dev.js')} parse-prd --input=${smallPRDPath} --num-tasks=5`,
|
||||||
{
|
{
|
||||||
stdio: 'inherit'
|
stdio: 'inherit'
|
||||||
}
|
}
|
||||||
@@ -179,7 +179,7 @@ async function runTests() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const mediumResult = execSync(
|
const mediumResult = execSync(
|
||||||
`node ${path.join(__dirname, 'dev.js')} parse-prd --input=${mediumPRDPath} --tasks=15`,
|
`node ${path.join(__dirname, 'dev.js')} parse-prd --input=${mediumPRDPath} --num-tasks=15`,
|
||||||
{
|
{
|
||||||
stdio: 'inherit'
|
stdio: 'inherit'
|
||||||
}
|
}
|
||||||
@@ -200,7 +200,7 @@ async function runTests() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const largeResult = execSync(
|
const largeResult = execSync(
|
||||||
`node ${path.join(__dirname, 'dev.js')} parse-prd --input=${largePRDPath} --tasks=25`,
|
`node ${path.join(__dirname, 'dev.js')} parse-prd --input=${largePRDPath} --num-tasks=25`,
|
||||||
{
|
{
|
||||||
stdio: 'inherit'
|
stdio: 'inherit'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user