14 lines
260 B
JavaScript
14 lines
260 B
JavaScript
|
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"}
|
||
|
);
|
||
|
});
|