thelounge/src/cli/config.js

14 lines
260 B
JavaScript
Raw Normal View History

2014-08-19 03:53:17 +02:00
var program = require("commander");
var child = require("child_process");
program
.command("config")
.description("Open the config")
.action(function() {
child.spawn(
"sudo",
["vim", process.cwd() + "/config.json"],
{stdio: "inherit"}
);
});