Updated konsole
This commit is contained in:
12
src/modules/konsole/commands/touch.js
Normal file
12
src/modules/konsole/commands/touch.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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], '');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user