Generalize reading from STDIN with a warning after 1000ms.
Rework CLI interface to support non-directory-based usages.