Skip to content

Commit 8d0194e

Browse files
authored
feat: read all tasks from monorepos (#171)
1 parent 03ecb5e commit 8d0194e

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

src/miseService.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,20 @@ export class MiseService {
345345
return [];
346346
}
347347

348+
let extraArgs = "";
349+
350+
if (includeHidden) {
351+
extraArgs += " --hidden";
352+
}
353+
354+
// The --all flag was added in 2025.10.3
355+
if (await this.hasValidMiseVersion([2025, 10, 3])) {
356+
extraArgs += " --all";
357+
}
358+
348359
try {
349360
const { stdout } = await this.cache.execCmd({
350-
command: includeHidden ? "tasks ls --json --hidden" : "tasks ls --json",
361+
command: `tasks ls --json ${extraArgs}`,
351362
});
352363
return JSON.parse(stdout);
353364
} catch (error: unknown) {
@@ -854,7 +865,7 @@ export class MiseService {
854865
}
855866
}
856867

857-
async hasValidMiseVersion() {
868+
async hasValidMiseVersion(minVersion?: readonly [number, number, number]) {
858869
if (!this.getMiseBinaryPath()) {
859870
return false;
860871
}
@@ -864,7 +875,7 @@ export class MiseService {
864875
return false;
865876
}
866877

867-
return isVersionGreaterOrEqualThan(version, MIN_MISE_VERSION);
878+
return isVersionGreaterOrEqualThan(version, minVersion ?? MIN_MISE_VERSION);
868879
}
869880

870881
async checkNewMiseVersion() {

0 commit comments

Comments
 (0)