Editor function takes an optional io object which is used to print an error output if the subprocess errors.
Switch to using 'sequence'-delineated arguments given to the subprocess run call to correctly handle whitespace. Also check the output, so we exit if we have an error. Test accordingly.