Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@tdashworth

Description

@tdashworth

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions