blob: 9acc139683aef386109d1ad4da9ec0d0fb8b6a55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
var TextFile = loadExtension("qbs.TextFile")
var zort = loadFile("zort.js")
function createCommands(filePaths) {
var cmd = new JavaScriptCommand();
cmd.description = "Write an empty file";
cmd.filePath = filePaths[0];
cmd.sourceCode = function() {
var f = new TextFile(filePath, TextFile.WriteOnly);
f.close();
}
return [cmd, zort.createCommand(filePaths)];
}
|