generate / generate-gitignore

Generate a .gitignore file from the command line when Generate's CLI is installed globally, or use as a plugin or sub-generator in your own generator.
https://github.com/generate
MIT License
112 stars 12 forks source link

Not able to see start task or End task as expected. #6

Open raminfosystems opened 4 years ago

raminfosystems commented 4 years ago

Steps to reproduce

  1. Install generate and generate-gitignore packages from CLI using given command. (Done.)
  2. Enter in the directory and open PowerShell window at the current location. (done)
  3. At command prompt type - 'gen gitignore' and press enter. (done.)
  4. Expected to see as per following. [12:33:42] starting generate [12:33:43] √ running tasks: [ 'gitignore' ] [12:33:44] starting gitignore [12:33:44] starting gitignore:default task [12:33:44] starting gitignore:gitignore task ? Which file do you want to write? Node

Node is selected and now I should expect to see [12:33:45] start task and end task. And .gitignore file should be generated at the destination directory. And generate command should exit successfully.

Actual result - .gitignore file generated, but generate command not finish and halt the prompt.

Workaround - Press Control + C to break and bring back to the command prompt in the PowerShell.

Resolution - gen command should display start and end task as well as on error should give prompt back to the user.

heytulsiprasad commented 3 years ago

This issue is still valid, faced the same today.