Grunt helper prompt not working

I am writing a new nagging plugin that uses some questions to solve some translation problems. I wrote a plugin using grunt.registerMultiTask();

AND I am calling these tasks using grunt translate

. But in some part of the code, I have a hint for solving translation migration problems.

Code:

grunt.helper('prompt', {}, [
  // Prompt for these values.
  grunt.helper('prompt_for', 'name')
], function(err, props) {
  // All done!
  done();
});

      

I wonder why it ignores the command line prompt. It just prints out the question and doesn't wait for an answer.

enter image description here

+3


source to share





All Articles