修改配置路径
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const shell = require("./shell");
|
||||
const os = require("os");
|
||||
|
||||
|
||||
module.exports = {
|
||||
@@ -12,7 +13,11 @@ module.exports = {
|
||||
shell.execSync("start " + uConfig.get("man"))
|
||||
});
|
||||
parser.addCmdLine("manu", "人工维护配置;", function () {
|
||||
shell.execSync("start " + $sConfig.getUserConfigPath())
|
||||
if (os.type() === 'Windows_NT') {
|
||||
shell.execSync("start " + $sConfig.getUserConfigPath())
|
||||
} else {
|
||||
console.log("请用浏览器访问:" + $sConfig.getUserConfigPath())
|
||||
}
|
||||
});
|
||||
|
||||
parser.addCmdLine("run [--file] [func]", "运行项目脚本;", function (cli) {
|
||||
|
||||
Reference in New Issue
Block a user