2 Star 0 Fork 0

Git工具集 / gitinspector

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gitinspector.js 746 Bytes
一键复制 编辑 原始数据 按行查看 历史
Bart van Andel 提交于 2016-12-02 12:06 . Setup npm package
var PythonShell = require('python-shell');
var options = {
// The main python script is in the same directory as this file
scriptPath: __dirname,
// Get command line arguments, skipping the default node args:
// arg0 == node executable, arg1 == this file
args: process.argv.slice(2)
};
// Set encoding used by stdin etc manually. Without this, gitinspector may fail to run.
process.env.PYTHONIOENCODING = 'utf8';
// Start inspector
var inspector = new PythonShell('gitinspector.py', options);
// Handle stdout
inspector.on('message', function(message) {
console.log(message);
});
// Let the inspector run, catching any error at the end
inspector.end(function (err) {
if (err) {
throw err;
}
});
Python
1
https://gitee.com/vcs-all-in-one/gitinspector.git
git@gitee.com:vcs-all-in-one/gitinspector.git
vcs-all-in-one
gitinspector
gitinspector
master

搜索帮助