Redirecting error stream to output.
authorSaba Saba <saba@sabadev.xyz>
Thu, 9 Feb 2023 17:26:20 +0000 (12:26 -0500)
committerSaba Saba <saba@sabadev.xyz>
Thu, 9 Feb 2023 17:26:20 +0000 (12:26 -0500)
git-repl.cl

index 9cb1650..65e8d20 100644 (file)
@@ -42,7 +42,7 @@
   (format nil "\"~a\"" text))
 
 (defun run-command (command &key (list-output nil))
-  (let ((output (uiop:run-program command :ignore-error-status t :force-shell t :input nil :output :string)))
+  (let ((output (uiop:run-program command :ignore-error-status t :force-shell t :input nil :output :string :error-output :output)))
     (if list-output
         (remove-if #'str:emptyp (mapcar #'str:trim (str:lines output :omit-nulls t)))
         output)))