Created
April 23, 2019 21:16
-
-
Save rjhilgefort/a1ef8d3b209a08f751d67dd64e22d7d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/* eslint-disable import/no-commonjs */ | |
;(async () => { | |
const util = require('util') | |
const child_process = require('child_process') | |
const { tap } = require('ramda') | |
const execP = util.promisify(child_process.exec) | |
const exec = command => execP(command).then(({ stdout, stderr }) => {}) | |
const { log } = console | |
// Get args | |
const [, , ...args] = process.argv | |
await exec(`echo ${args}`) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment