Files
zakscode/src/modules/konsole/commands/touch.js
ztimson b71b2092c3
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
Updated konsole
2024-01-07 16:36:14 -05:00

13 lines
297 B
JavaScript

window.cli.exec['touch'] = {
autocomplete: () => {
return [];
},
help: () => {
return 'Change file timestamps & create file if missing';
},
run: args => {
if(!args[0]) throw new Error('touch: missing operand');
if(!window.cli.fs(args[0])) window.cli.fs(args[0], '');
}
}