Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator name formatting when running yo when the name contains a - #848

Open
tdashworth opened this issue Apr 29, 2021 · 3 comments
Open

Comments

@tdashworth
Copy link

When running yo to discover which generators I have installed, the name of a generator is incorrectly formatted when it contains a -. For example, say I have installed the generator generator-sample-project, when running yo the output is:

> yo
? 'Allo Tom! What would you like to do? (Use arrow keys)
  Run a generator
> sample Project
  ──────────────
  Update your generators
  Install a generator
  Find some help
  Clear global config
(Move up and down to reveal more choices)

Instead of this I would expect either

  1. sample-project
  2. sample project
  3. Sample project
  4. Sample Project

But not sample Project.


I am running version 4.0.0 at Windows 10.

@JoshuaKGoldberg JoshuaKGoldberg transferred this issue from yeoman/yeoman Jan 21, 2025
@JoshuaKGoldberg
Copy link

JoshuaKGoldberg commented Jan 23, 2025

Agreed, this should be improved. I think this issue is actually a subset and duplicate of #50. 👍

In theory yo could add some heuristics to figure out a name. But there will always be edge cases that break those heuristics. If someone wants a good name, they should specify in the config.

Someone please yell at me if I'm wrong about that assumption and you want to advocate for leaving this issue open separately. Cheers! 🎩

@JoshuaKGoldberg
Copy link

Actually, before I close, @UlisesGascon - WDYT?

@UlisesGascon
Copy link
Member

Agree... we can improve the default formatting to match option 3 or 4 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants