(command, commandArgs, options = {})
| 25 | const manifestFile = path.join(ROOT, "docs/data/manifest.json"); |
| 26 | |
| 27 | function sh(command, commandArgs, options = {}) { |
| 28 | try { |
| 29 | return execFileSync(command, commandArgs, { encoding: "utf8", stdio: ["ignore", "pipe", "pipe"], ...options }).trim(); |
| 30 | } catch (error) { |
| 31 | return ""; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | function readProblems(file) { |
| 36 | const source = fs.readFileSync(file, "utf8"); |