Pulled konsole out into it's own module
All checks were successful
Build Website / Build NPM Project (push) Successful in 22s
Build Website / Tag Version (push) Successful in 6s
Build Website / Build & Push Dockerfile (push) Successful in 1m18s

This commit is contained in:
2024-01-07 12:29:00 -05:00
parent 42d26503bc
commit 0046dc1cb4
20 changed files with 407 additions and 387 deletions

View File

@@ -0,0 +1,13 @@
window.cli.exec['ls'] = {
autocomplete: () => {
return [];
},
help: () => {
return 'Display directory contents';
},
run: args => {
const target = window.cli.fs(args[0]);
if(!target) throw new Error(`ls: cannot access \'${args[0]}\': No such file or directory`)
return Object.keys(target).reduce((acc, p) => acc + `${p}\n`, '');
}
}