mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
Start task in own task
This commit is contained in:
@ -1,7 +1,19 @@
|
||||
var fs = require('fs');
|
||||
|
||||
var IonicTask = function() {
|
||||
};
|
||||
|
||||
IonicTask.prototype = {
|
||||
// Prompt the user for a response
|
||||
ask: function(question) {
|
||||
var response;
|
||||
|
||||
process.stdout.write(question + ' ');
|
||||
process.stdin.resume();
|
||||
response = fs.readSync(process.stdin.fd, 100, 0, "utf8");
|
||||
process.stdin.pause();
|
||||
return response[0].trim();
|
||||
},
|
||||
run: function(ionic) {
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user