scottgonzalez / pretty-diff

colorized HTML diffs
MIT License
218 stars 27 forks source link

gist-diff error - tty.setRawMode: Use `process.stdin.setRawMode()` instead. #6

Closed benwoodward closed 11 years ago

benwoodward commented 11 years ago
~/dev/my_project (master)> g gd e43bec3 4324b98
GitHub password for benwoodward: tty.setRawMode: Use `process.stdin.setRawMode()` instead.

/Users/benwoodward/dev/pretty-diff/diff.js:4
    var childArgs = args ? [ "diff" ].concat( args.split( /\s/ ) ) : [ "diff" ],
                                                   ^
TypeError: Object e43bec3,4324b98 has no method 'split'
    at module.exports (/Users/benwoodward/dev/pretty-diff/diff.js:4:49)
    at /Users/benwoodward/dev/pretty-diff/gist-diff.js:16:2
    at /Users/benwoodward/dev/pretty-diff/gist-diff.js:96:4
    at ReadStream.<anonymous> (/Users/benwoodward/dev/pretty-diff/gist-diff.js:86:4)
    at ReadStream.EventEmitter.emit (events.js:96:17)
    at TTY.onread (net.js:391:31)
scottgonzalez commented 11 years ago

Sorry about that. I fixed it a LONG time ago locally and never committed/pushed. I'll get this on NPM soon too. I just want to add support for storing username/password in a config file first.

scottgonzalez commented 11 years ago

FYI 0.1.0 is now on npm and ships with binaries. Check out the updated readme :-)

benwoodward commented 11 years ago

Great. Thanks!