fix: show command no longer requires complexity report to exist (#979)
Co-authored-by: Ben Vargas <ben@example.com>
This commit is contained in:
7
.changeset/fix-show-command-complexity.md
Normal file
7
.changeset/fix-show-command-complexity.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
"task-master-ai": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix: show command no longer requires complexity report file to exist
|
||||||
|
|
||||||
|
The `tm show` command was incorrectly requiring the complexity report file to exist even when not needed. Now it only validates the complexity report path when a custom report file is explicitly provided via the -r/--report option.
|
||||||
@@ -2353,10 +2353,14 @@ ${result.result}
|
|||||||
.option('--tag <tag>', 'Specify tag context for task operations')
|
.option('--tag <tag>', 'Specify tag context for task operations')
|
||||||
.action(async (taskId, options) => {
|
.action(async (taskId, options) => {
|
||||||
// Initialize TaskMaster
|
// Initialize TaskMaster
|
||||||
const taskMaster = initTaskMaster({
|
const initOptions = {
|
||||||
tasksPath: options.file || true,
|
tasksPath: options.file || true
|
||||||
complexityReportPath: options.report || false
|
};
|
||||||
});
|
// Only pass complexityReportPath if user provided a custom path
|
||||||
|
if (options.report && options.report !== COMPLEXITY_REPORT_FILE) {
|
||||||
|
initOptions.complexityReportPath = options.report;
|
||||||
|
}
|
||||||
|
const taskMaster = initTaskMaster(initOptions);
|
||||||
|
|
||||||
const idArg = taskId || options.id;
|
const idArg = taskId || options.id;
|
||||||
const statusFilter = options.status;
|
const statusFilter = options.status;
|
||||||
|
|||||||
Reference in New Issue
Block a user