Has anyone written something like 'Expect' in Nim? Expect is a tool for wrapping command-line commands with a parser that can execute the command and then interpret the results.
Commonly used as one of the basic pieces for constructing command execution tools like ansible or fabric. (see 'Exploring Expect' by Don Libes - very old book)