read-and-return-callback this package will give you ability of read from command line and done it on your call back