From 033cab34b65766249aaf803014278980a6a4cbd6 Mon Sep 17 00:00:00 2001 From: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com> Date: Thu, 10 Jul 2025 10:26:26 +0300 Subject: [PATCH] refactor(commands): Update tasks path retrieval to use taskMaster.getTasksPath() for consistency --- scripts/modules/commands.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/modules/commands.js b/scripts/modules/commands.js index a2fa6f06..009c1682 100644 --- a/scripts/modules/commands.js +++ b/scripts/modules/commands.js @@ -1016,7 +1016,7 @@ function registerCommands(programInstance) { `Updating tasks from ID >= ${fromId} with prompt: "${prompt}"` ) ); - console.log(chalk.blue(`Tasks file: ${tasksPath}`)); + console.log(chalk.blue(`Tasks file: ${taskMaster.getTasksPath()}`)); if (useResearch) { console.log( @@ -1119,6 +1119,7 @@ function registerCommands(programInstance) { const useResearch = options.research || false; // Validate tasks file exists + const tasksPath = taskMaster.getTasksPath(); if (!fs.existsSync(tasksPath)) { console.error( chalk.red(`Error: Tasks file not found at path: ${tasksPath}`) @@ -1291,6 +1292,7 @@ function registerCommands(programInstance) { const useResearch = options.research || false; // Validate tasks file exists + const tasksPath = taskMaster.getTasksPath(); if (!fs.existsSync(tasksPath)) { console.error( chalk.red(`Error: Tasks file not found at path: ${tasksPath}`) @@ -4240,6 +4242,7 @@ Examples: const tasksPath = taskMaster.getTasksPath(); // Validate tasks file exists + const tasksPath = taskMaster.getTasksPath(); if (!fs.existsSync(tasksPath)) { console.error( chalk.red(`Error: Tasks file not found at path: ${tasksPath}`) @@ -4380,6 +4383,7 @@ Examples: const tasksPath = taskMaster.getTasksPath(); // Validate tasks file exists + const tasksPath = taskMaster.getTasksPath(); if (!fs.existsSync(tasksPath)) { console.error( chalk.red(`Error: Tasks file not found at path: ${tasksPath}`) @@ -4435,6 +4439,7 @@ Examples: const tasksPath = taskMaster.getTasksPath(); // Validate tasks file exists + const tasksPath = taskMaster.getTasksPath(); if (!fs.existsSync(tasksPath)) { console.error( chalk.red(`Error: Tasks file not found at path: ${tasksPath}`) @@ -4485,6 +4490,7 @@ Examples: const tasksPath = taskMaster.getTasksPath(); // Validate tasks file exists + const tasksPath = taskMaster.getTasksPath(); if (!fs.existsSync(tasksPath)) { console.error( chalk.red(`Error: Tasks file not found at path: ${tasksPath}`) @@ -4531,6 +4537,7 @@ Examples: const tasksPath = taskMaster.getTasksPath(); // Validate tasks file exists + const tasksPath = taskMaster.getTasksPath(); if (!fs.existsSync(tasksPath)) { console.error( chalk.red(`Error: Tasks file not found at path: ${tasksPath}`) @@ -4583,6 +4590,7 @@ Examples: const tasksPath = taskMaster.getTasksPath(); // Validate tasks file exists + const tasksPath = taskMaster.getTasksPath(); if (!fs.existsSync(tasksPath)) { console.error( chalk.red(`Error: Tasks file not found at path: ${tasksPath}`)