mokkabonna / inquirer-autocomplete-prompt

Autocomplete prompt for inquirer
ISC License
354 stars 82 forks source link

How add in Yeoman ? #35

Closed brunoosilva closed 6 years ago

brunoosilva commented 7 years ago

Hello,

How add in Yeoman ?

Thank you

mokkabonna commented 7 years ago

Not exactly sure, but have you tried registering it and then just use it?

inquirer.registerPrompt('autocomplete', require('inquirer-autocomplete-prompt'));
brunoosilva commented 7 years ago

Thanks for your answer..

Inside the Yeoman Generator, don't have access the variable inquirer, because is a internal dependence of Yeoman. How register this plugin ?

SBoudrias commented 7 years ago

@brunoosilva that's not really possible because Yeoman is a generic interface integrated in a few differents tools (there's yo, but also the GUI implementations/integrations). If you don't use the defaults, then the GUI won't know how to get an answer to the prompts.

ruslanxdev commented 7 years ago

@brunoosilva look at this: https://github.com/diegohaz/arc/blob/generator-arc/src/store/index.js

mokkabonna commented 6 years ago

Thanks @ruslankhh

dhruvdutt commented 6 years ago

@brunoosilva @mokkabonna Did it work?