Fetch the repository succeeded.
#!/usr/bin/env node
/* Copyright (c) 2019-2020 Digital Dream Labs. See LICENSE file for details. */
var commander = require("commander");
const program = new commander.Command();
program
.version("1.0.0", "-v, --version")
.description(
" __ ________ _____ _______ ____ _____ \n" +
" \\ \\ / / ____/ ____|__ __/ __ \\| __ \\ \n" +
" \\ \\ / /| |__ | | | | | | | | |__) |\n" +
" \\ \\/ / | __|| | | | | | | | _ / \n" +
" \\ / | |___| |____ | | | |__| | | \\ \\ \n" +
" \\/ |______\\_____| |_| \\____/|_| \\_\\ \n\n"
)
.addCommand(require("./tools/configure.js"))
.addCommand(require("./tools/ota.js").otaAdd)
.addCommand(require("./tools/ota.js").otaSync)
.addCommand(require("./tools/ota.js").otaApprove)
.exitOverride(() => {
process.exit(0);
});
program
.command("serve")
.description("Serve the vector websetup")
.option("-p, --port <number>", "port to serve the setup on", 8000)
.option(
"-ip, --ip-address <addr>",
"address to serve the setup on",
"0.0.0.0"
)
.action((options) => {
try {
require("./tools/run.js")(options.port, options.ipAddress);
} catch (err) {
console.log(err);
}
});
program.parse(process.argv);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。