@@ -63,7 +63,6 @@ const tmai = new TaskMaster({
6363 isTestMode : false ,
6464} ) ;
6565
66- // TODO: done
6766export async function tmaiInitAsync ( ) {
6867 const choice = await inquirer . prompt ( tmaiInitMenu_prompt ) ;
6968
@@ -106,7 +105,6 @@ export async function tmaiInitAsync() {
106105 await restartAsync ( ) ;
107106}
108107
109- // TODO: done
110108export async function tmaiGenAsync ( ) {
111109 const choice = await inquirer . prompt ( tmaiGenDecMenu_prompt ) ;
112110
@@ -147,7 +145,6 @@ export async function tmaiGenAsync() {
147145 await restartAsync ( ) ;
148146}
149147
150- // TODO: in-progress
151148export async function tmaiManageAsync ( ) {
152149 let tasks = await tmai . getTasksContentAsync ( ) ;
153150 const { mainIDs, subtasksIDs } = await tmai . getAllTaskIdsAsync ( tasks ) ;
@@ -373,21 +370,26 @@ export async function tmaiManageAsync() {
373370 await restartAsync ( ) ;
374371}
375372
376- // TODO: in-progress
377373export async function tmaiDependenciesAsync ( ) {
374+ let tasks = await tmai . getTasksContentAsync ( ) ;
378375 const { tmaiDepsMenu } = await inquirer . prompt ( tmaiDepsMenu_prompt ) ;
379- const tasks = await tmai . getTasksContentAsync ( ) ;
380376 const { mainIDs, subtasksIDs } = await tmai . getAllTaskIdsAsync ( tasks ) ;
381377
382378 switch ( tmaiDepsMenu ) {
383379 case "tmai-adddeps" : {
384380 await tmai . listAsync ( tasks , TASKS_STATUSES . join ( "," ) , true , true ) ;
385- const taskId = await askHybridTaskIdAsync ( mainIDs , subtasksIDs ) ;
381+ const taskId = await askHybridTaskIdAsync (
382+ mainIDs ,
383+ subtasksIDs ,
384+ "Select the task ID to which you want to add dependencies (integer or hierarchical):" ,
385+ ) ;
386386 const multipleTaskIds = await askMultipleTaskIdAsync (
387387 mainIDs ,
388388 subtasksIDs ,
389+ "Select the dependencies IDs to add (comma-separated):" ,
389390 ) ;
390391 await tmai . addDependencyAsync ( taskId , multipleTaskIds ) ;
392+ tasks = await tmai . getTasksContentAsync ( ) ;
391393 await tmai . listAsync ( tasks , TASKS_STATUSES . join ( "," ) , true , true ) ;
392394 break ;
393395 }
@@ -406,7 +408,6 @@ export async function tmaiDependenciesAsync() {
406408 await restartAsync ( ) ;
407409}
408410
409- // TODO: done
410411export async function tmaiBackupRestoreClearAsync ( ) {
411412 const { tmaiBackupRestoreClearMenu } = await inquirer . prompt (
412413 tmaiBackupRestoreClearClear_prompt ,
0 commit comments