2014-08-19 01:53:17 +00:00
|
|
|
var program = require("commander");
|
|
|
|
var child = require("child_process");
|
2014-10-01 16:43:46 +00:00
|
|
|
var Helper = require("../helper");
|
2014-08-19 01:53:17 +00:00
|
|
|
|
|
|
|
program
|
|
|
|
.command("config")
|
2014-10-03 23:33:44 +00:00
|
|
|
.description("Edit config: '" + Helper.HOME + "/config.js'")
|
2014-08-19 01:53:17 +00:00
|
|
|
.action(function() {
|
|
|
|
child.spawn(
|
2014-10-09 12:40:16 +00:00
|
|
|
process.env.EDITOR || "vi",
|
2014-10-03 23:33:44 +00:00
|
|
|
[Helper.HOME + "/config.js"],
|
2014-08-19 01:53:17 +00:00
|
|
|
{stdio: "inherit"}
|
|
|
|
);
|
|
|
|
});
|