Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
renamed link to edit
  • Loading branch information
cadorn committed Apr 30, 2012
1 parent 7f272ff commit 875371f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/commands/link.js → lib/commands/edit.js
Expand Up @@ -6,9 +6,9 @@ var Q = require("sourcemint-util-js/lib/q");
var TERM = require("sourcemint-util-js/lib/term");


var command = exports["link"] = new ARGS_PARSER();
var command = exports["edit"] = new ARGS_PARSER();

command.help("Link/clone a \0blue(\0bold(dependency\0)\0) (see `sm status`) to make changes.");
command.help("Setup a \0blue(\0bold(dependency\0)\0) (see `sm status`) package for editing (similar to `npm link` but local).");
command.arg("DEPENDENCY");
command.arg("SOURCE_URI").optional();
command.helpful();
Expand All @@ -24,7 +24,7 @@ command.action(function (options) {

PM.forProgramPath(basePath).then(function(pm) {
return PM.forPackagePath(basePath, pm).then(function(pm) {
return pm.link(options);
return pm.edit(options);
});
}).then(function() {
process.exit(0);
Expand Down

0 comments on commit 875371f

Please sign in to comment.