Defined a git macro to make it easier to define git commands.
authorSaba Saba <saba@sabadev.xyz>
Thu, 9 Feb 2023 17:26:16 +0000 (12:26 -0500)
committerSaba Saba <saba@sabadev.xyz>
Thu, 9 Feb 2023 17:26:16 +0000 (12:26 -0500)
git-skipper.cl

index e69de29..66a0c18 100644 (file)
@@ -0,0 +1,7 @@
+(ql:quickload "cl-utilities")
+
+(in-package :cl-user)
+
+(defmacro git (&rest arguments)
+  `(mapcar (lambda (x) (string-trim " " x))
+           (cl-utilities:split-sequence #\newline (uiop:run-program (list "git" ,@arguments) :input nil :output :string))))