Skip to content

Commit af489bb

Browse files
committed
fix: correct tmai init menu choices
1 parent c73533d commit af489bb

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

src/core/taskmaster/exec.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ import { tmaiInitMenu_prompt } from "@/prompt";
1212

1313
const tmai = new TaskMaster();
1414

15+
/******* be6e15c7-9970-4578-baf6-d31421004679 *******/
1516
export async function tmaiInitAsync() {
16-
const choice = await inquirer.prompt(tmaiInitMenu_prompt);
17+
const choice = await inquirer.prompt(tmaiInitMenu_prompt);
1718

18-
if (choice.tmInitMenu === "tmai-install") {
19-
await tmai.installAsync();
20-
} else if (choice.tmInitMenu === "tmai-init") {
21-
await tmai.initAsync();
22-
} else if (choice.tmInitMenu === "tmai-config") {
23-
await tmai.configAsync();
24-
}
19+
if (choice.tmaiInitMenu === "tmai-install") {
20+
await tmai.installAsync();
21+
} else if (choice.tmaiInitMenu === "tmai-init") {
22+
await tmai.initAsync();
23+
} else if (choice.tmaiInitMenu === "tmai-config") {
24+
await tmai.configAsync();
25+
}
2526

26-
await restartAsync();
27+
await restartAsync();
2728
}

0 commit comments

Comments
 (0)