Skip to content

Commit d981b50

Browse files
committed
refactor(task): remove tag argument from status update
The '--tag' argument is no longer passed to the 'set-status' command as it's not used. Also reorders the 'move task' menu option in the update tasks prompt and updates its emoji.
1 parent ebad443 commit d981b50

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

src/core/TaskMaster.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,20 +1263,15 @@ export class TaskMaster {
12631263
public async updateTaskStatusAsync(
12641264
ids: string[],
12651265
status: string,
1266-
tag: string,
1266+
_tag: string,
12671267
): Promise<void> {
12681268
const formatedIds = ids.length > 1 ? ids.join(",") : ids[0];
12691269
await this._executeCommandAsync(
12701270
`Updating status of task(s) ${formatedIds} to ${status}...`,
12711271
`Status of task(s) ${formatedIds} updated successfully!`,
12721272
`Failed to update status of task(s) ${formatedIds}`,
12731273
this._mainCommand,
1274-
[
1275-
"set-status",
1276-
`--id=${formatedIds}`,
1277-
`--status=${status}`,
1278-
`--tag=${tag}`,
1279-
],
1274+
["set-status", `--id=${formatedIds}`, `--status=${status}`],
12801275
);
12811276
}
12821277

src/prompt.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,6 @@ export const tmaiUpdateTasksMenu_prompt = [
285285
name: `${emoji.get("pencil2")} Update task or subtask status`,
286286
value: "tmai-updatestatus",
287287
},
288-
{
289-
name: `${emoji.get("arrows_counterclockwise")} Move task(s) to another tag (cross-tag)`,
290-
value: "tmai-movetask",
291-
},
292288
{
293289
name: `${emoji.get("pencil2")} Convert task to subtask`,
294290
value: "tmai-converttasktosubtask",
@@ -297,6 +293,10 @@ export const tmaiUpdateTasksMenu_prompt = [
297293
name: `${emoji.get("pencil2")} Convert subtask to task`,
298294
value: "tmai-convertsubtasktotask",
299295
},
296+
{
297+
name: "🔄 Move task(s) to another tag (cross-tag)",
298+
value: "tmai-movetask",
299+
},
300300
{
301301
name: `${emoji.get("arrow_left")} Back`,
302302
value: "back",

0 commit comments

Comments
 (0)