From: Saba Saba Date: Thu, 9 Feb 2023 17:26:16 +0000 (-0500) Subject: Defined a git macro to make it easier to define git commands. X-Git-Url: http://sabadev.xyz:4321/?a=commitdiff_plain;h=a6f7e53b6e5d0ffd3ed77aaa90b956359f1f324c;p=git-repl.git Defined a git macro to make it easier to define git commands. --- diff --git a/git-skipper.cl b/git-skipper.cl index e69de29..66a0c18 100644 --- a/git-skipper.cl +++ b/git-skipper.cl @@ -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))))