-
-
Save Shelob9/72dcd52fc2d52c7364d96b962e20ab9b 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
npx https://gist.github.com/zkat/4bc19503fe9e9309e2bfaa2c58074d32 |
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 | |
console.log('yay gist') |
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 | |
console.log('I am the Batman.') |
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
npx ~/npx-is-cool |
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
npm init # add package.json | |
npm install commander --save |
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 | |
const program = require('commander'); | |
program | |
.version('0.1.0') | |
.option('-h, --hi-roy', 'Add bbq sauce') | |
.parse(process.argv); | |
if (program.hiRoy){ | |
console.log( 'Hi Roy'); | |
} |
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 | |
const program = require('commander'); | |
program | |
.version('0.1.0') | |
.option('-h, --hi-roy', 'Add bbq sauce') | |
.option('-wpti, --wp-tests-i [directory]', 'Copy WordPress Test suite to [directory]', './') | |
.parse(process.argv); | |
if (program.hiRoy){ | |
console.log( 'Hi Roy'); | |
} | |
if (program.wpTestsI){ | |
console.log( program.wpTestsI ); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment