Created
March 5, 2019 14:28
-
-
Save alieslamifard/13239c046e799eeff510ab096b8ef046 to your computer and use it in GitHub Desktop.
yeoman generator
This file contains hidden or 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
| constructor(args, opts) { | |
| super(args, opts); | |
| // Define argument. | |
| this.argument('arg1', { type: String, required: false }); | |
| // Define options | |
| this.option('coffee', { type: String, required: false }); | |
| // And you can then access it later; e.g. | |
| // this.log(this.options.arg1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment