This commit is contained in:
Endeavorance 2025-05-22 15:20:43 -04:00
parent cc19888102
commit 8970bd2895
2 changed files with 4 additions and 2 deletions

View file

@ -186,7 +186,8 @@ async function ls(scriptName?: string) {
return;
}
const filesInDir = new Glob(`${RUNDIR_PATH}/*`).scan();
const currentRundir = findNearestRundir();
const filesInDir = new Glob(`${currentRundir}/*`).scan();
const scriptLines: string[] = [];
for await (const file of filesInDir) {
@ -199,6 +200,7 @@ async function ls(scriptName?: string) {
const sorted = scriptLines.sort((a, b) => a.localeCompare(b));
console.log(chalk.dim(currentRundir));
console.log(sorted.join("\n"));
}