#!/usr/bin/env node var proc = require('child_process') var airpaste = require('airpaste') var namespace = process.argv[2] var stream = airpaste(namespace) var child = proc.spawn('git', ['remote-ext', namespace, 'git %s .'], { stdio: ['pipe', 'pipe', 'inherit'], }) child.stdout.pipe(stream).pipe(child.stdin) child.on('close', process.exit)