Merge pull request #221 from wizardfrag/editfix

Fix missing Helper method in edit and use $EDITOR
This commit is contained in:
Mattias Erming 2014-10-09 16:30:20 +02:00
commit b565327a4a
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ program
.description("Edit config: '" + Helper.HOME + "/config.js'") .description("Edit config: '" + Helper.HOME + "/config.js'")
.action(function() { .action(function() {
child.spawn( child.spawn(
"vi", process.env.EDITOR || "vi",
[Helper.HOME + "/config.js"], [Helper.HOME + "/config.js"],
{stdio: "inherit"} {stdio: "inherit"}
); );

View File

@ -15,8 +15,8 @@ program
return; return;
} }
child.spawn( child.spawn(
"vi", process.env.EDITOR || "vi",
[Helper.resolveHomePath("users", name, "user.json")], [require("path").join(Helper.HOME, "users", name, "user.json")],
{stdio: "inherit"} {stdio: "inherit"}
); );
}); });