Created
November 6, 2019 21:33
-
-
Save john-osullivan/8bc45d4afc1ab7045ffef9212208a4a9 to your computer and use it in GitHub Desktop.
Dev Diaries #3 - yargs module for cmd config
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
export const command = 'lorem <arg1> <arg2>'; | |
export const desc = 'This cmd description is ipsum'; | |
export function builder(yargs) { | |
// Add addt'l command configuration | |
} | |
export function handler(argv) { | |
// Use parsed argv to perform any actions desired | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment