feat: added inquirer as an alternative to --template cli#3933
feat: added inquirer as an alternative to --template cli#3933erickzhao merged 21 commits intoelectron:mainfrom
Conversation
erickzhao
left a comment
There was a problem hiding this comment.
Hey @sethcg, thanks for this contribution! Have you tried using the Listr2 adapter for inquirer for this purpose?
https://www.npmjs.com/package/@listr2/prompt-adapter-inquirer
|
@erickzhao |
|
@erickzhao |
|
Hi @sethcg, let me take a look! |
|
@erickzhao
|
|
Thanks for these changes @sethcg. I have a few UX tweaks that I would suggest. I think it might be easier if I just push these commits up to your branch. Sorry for the delay! |
That would be great! |
|
Just added commit 20823ab.
With this change, we lose the |
Summarize your changes:
These are my proposed changes to the cli tool.
I added @inquirer/prompts to allow users to run the command, instead of specifying --template the user would be asked a series of questions so they could see the available options.
Here's what it looks like in the console:
Example of results after completion:
Notes: