1 2 3 4 5 6 7 8 9 10 11 12
var Process = require("qbs.Process") function read(workingDirectory) { var git = new Process(); git.setWorkingDirectory(workingDirectory); var meta = Object.create(null); git.exec("git", ["describe", "--long"], true); meta.version = git.readLine(); return meta; }