Updated konsole
All checks were successful
Build Website / Build NPM Project (push) Successful in 21s
Build Website / Tag Version (push) Successful in 7s
Build Website / Build & Push Dockerfile (push) Successful in 1m4s

This commit is contained in:
2024-01-07 16:36:14 -05:00
parent 0046dc1cb4
commit b71b2092c3
11 changed files with 92 additions and 10 deletions

View File

@@ -3,11 +3,12 @@ window.cli.exec['cd'] = {
return [];
},
help: () => {
return 'Clear console output';
return 'Change present working directory';
},
run: args => {
const path = window.cli.fs(args[0]);
if(!path) throw new Error(`cd: \'${args[0]}\': No such file or directory`)
if(!path) throw new Error(`cd: \'${args[0]}\': No such file or directory`);
if(typeof path != 'object') throw new Error(`cd: \'${args[0]}\': Not a directory`);
window.cli.pwd = window.cli.path(args[0]);
window.cli._prompt.innerText = window.cli._buildPrompt();