()
| 31 | getCredentials(); |
| 32 | |
| 33 | function getCredentials() { |
| 34 | |
| 35 | var rl = readline.createInterface({ |
| 36 | input: process.stdin, |
| 37 | output: process.stdout |
| 38 | }); |
| 39 | |
| 40 | rl.on('SIGINT', function() { |
| 41 | // Ctrl-C |
| 42 | console.log("Canceled."); |
| 43 | process.exit(1); |
| 44 | }); |
| 45 | |
| 46 | rl.question("Username: ", function(usr) { |
| 47 | rl.close(); |
| 48 | username = usr; |
| 49 | getPassword(function(pass) { |
| 50 | password = pass; |
| 51 | listMilestones(); |
| 52 | }); |
| 53 | }) |
| 54 | }; |
| 55 | |
| 56 | function listMilestones() { |
| 57 |
no test coverage detected