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,15 @@
window.cli.exec['cd'] = {
autocomplete: () => {
return [];
},
help: () => {
return 'Clear console output';
},
run: args => {
const path = window.cli.fs(args[0]);
if(!path) throw new Error(`cd: \'${args[0]}\': No such file or directory`)
window.cli.pwd = window.cli.path(args[0]);
window.cli._prompt.innerText = window.cli._buildPrompt();
}
}