ztimson 0046dc1cb4
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
Pulled konsole out into it's own module
2024-01-07 12:29:00 -05:00

13 lines
392 B
JavaScript

window.cli.exec['help'] = {
autocomplete: () => {
return [];
},
help: () => {
return 'Display all commands';
},
run: args => {
return `Konsole v${window.cli.version} - an experimental bash emulator written in JavaScript\nCreated By: Zakary Timson\n\n` +
Object.keys(window.cli.exec).map(command => `${command} - ${window.cli.exec[command].help()}`).join('\n');
}
}