Skip to content

Commit

Permalink
remove -r flag - now assumed to be first (unnamed) argument
Browse files Browse the repository at this point in the history
  • Loading branch information
clux committed Jul 20, 2014
1 parent 8f512b5 commit 490bac5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
0.3.0 / 2014-07-20
==================
* `-r` flag is removed, now assumed the only unnamed argument
* Rewrite so it can be used as a library:
- package.json location is now fully asynchronous
- library simply works out the commands like a -d dryrun
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Install, then run in the directory containing all your repos that youd like to l

```bash
npm install -g symlink
symlink -r repoDir
symlink repoDir
```

## What it does
Expand All @@ -39,7 +39,7 @@ When I reinstall my linux, I git clone all my repos and let symlink figure out a

```
# NB: for readability the full paths have been shortened
kjttks@clux ~/repos $ symlink -r . -g tap -d
kjttks@clux ~/repos $ symlink . -g tap -d
[
"cd ./blog && npm install marked ecstatic promzard async browserify ejs",
"cd ./blog && npm link",
Expand Down
7 changes: 3 additions & 4 deletions bin.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
#!/usr/bin/env node
var argv = require('optimist')
.usage('Usage: $0 [-d] -r repoDir [-g globals]')
.usage('Usage: $0 repoDir [-d] [-g globals]')
.describe('g', 'globally-link')
.boolean('d')
.describe('d', 'dry-run')
.demand(['r'])
.describe('r', 'repoDir')
.demand(1)
.argv;

// can do multiple -g globX chains
var globals = argv.g ? (Array.isArray(argv.g) ? argv.g : [argv.g]): []
var dir = require('path').join(process.cwd(), argv.r);
var dir = require('path').join(process.cwd(), argv._[0]);
var cp = require('child_process');
var async = require('async');

Expand Down

0 comments on commit 490bac5

Please sign in to comment.