ace-mode-move
Version:
Syntax highlighting for Libra's Move language (https://developers.libra.org/docs/move-paper), for Ace ( https://ace.c9.io/ )
19 lines (14 loc) • 378 B
JavaScript
const path = require('path');
const { execSync } = require('child_process');
const PROJECTDIR = __dirname;
function dir(relativePath) {
return path.join(PROJECTDIR, relativePath);
}
function run(commandLine, workingDir = '') {
let options = {
encoding: 'utf-8',
cwd: dir(workingDir)
};
return execSync(commandLine, options);
}
module.exports = { dir, run };