yeoman / yo

CLI tool for running Yeoman generators
http://yeoman.io
BSD 2-Clause "Simplified" License
3.81k stars 395 forks source link

Update individual generators from the menu #188

Open sindresorhus opened 9 years ago

sindresorhus commented 9 years ago

screen shot 2014-08-16 at 00 30 26

When an update is available. Would be nice. Thoughts?

I think we can use https://github.com/TooTallNate/keypress to get the space keypress event.

@yeoman/yeoman-contributors

robdodson commented 9 years ago

:+1:

btford commented 9 years ago

:+1:

passy commented 9 years ago

:+1:

stephenplusplus commented 9 years ago

I love the <3, and the usage can be figured out, but it's not inherently obvious. Nothing explains what hitting enter will do (unless it was scrolled off the screen?)

What about something like:

(?) 'Allo Sindre! What would you like to do?:
Press [Enter] to run, [Space] to update.               <-- always visible (if possible?)
> Webapp <3 Update Available!
  Angular
  Backbone
sindresorhus commented 9 years ago

@stephenplusplus Enter is the canonical way to run something. I don't think it needs explaining. I prefer to keep it minimalistic. The user has already pressed Enter to run many times before the space message shows up.

stephenplusplus commented 9 years ago

The user has already pressed Enter to run many times before the space message shows up.

Assuming they're already Yeoman users, this would be an easy transition. But I don't just mean "they won't know they have to hit enter", I mean we don't even say what enter will do, meaning that nothing says "This will run a generator." Just saying!

sindresorhus commented 9 years ago

@stephenplusplus It does say that, but at the top. Here's a screenshot from the initial view:

ragingwind commented 9 years ago

<3