2012-07-14 02:40:38 +08:00
|
|
|
var read = require("../lib/read.js")
|
|
|
|
|
|
|
|
read({prompt: "Username: ", default: "test-user" }, function (er, user) {
|
|
|
|
read({prompt: "Password: ", default: "test-pass", silent: true }, function (er, pass) {
|
2012-07-25 03:34:13 +08:00
|
|
|
read({prompt: "Password again: ", default: "test-pass", silent: true }, function (er, pass2) {
|
|
|
|
console.error({user: user,
|
|
|
|
pass: pass,
|
|
|
|
verify: pass2,
|
|
|
|
passMatch: (pass === pass2)})
|
|
|
|
console.error("the program should exit now")
|
2012-07-14 02:40:38 +08:00
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|