The edit::line API now takes a source object for I/O, qnd allows getting a single command from the editor.