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