Files: 18024992bfb2fc4f955daa3aeaf04a6f7dc68e01 / bin / git-airpaste
346 bytesRaw
1 | #!/usr/bin/env node |
2 | |
3 | var proc = require('child_process') |
4 | var airpaste = require('airpaste') |
5 | |
6 | var namespace = process.argv[2] |
7 | var stream = airpaste(namespace) |
8 | var child = proc.spawn('git', ['remote-ext', namespace, 'git %s .'], { |
9 | stdio: ['pipe', 'pipe', 'inherit'], |
10 | }) |
11 | child.stdout.pipe(stream).pipe(child.stdin) |
12 | child.on('close', process.exit) |
13 |
Built with git-ssb-web