factor out the concrete method to get a next line from the user
factor out the concrete method to get a next line from the user

Instead of saying line.prompt() (which is tightly coupled with the
particular library used and doesn't allow for other ways to read
an input line), we now use an inner function that abstracts away
the input method.

sensorbee/sensorbee,sensorbee/sensorbee