Drop defrun from .quire/ci.fnl
Use the standard zero-arg run-fn pattern with an explicit runtime
let-binding instead of the defrun macro. One less concept in play.
Assisted-by: GLM-5.1 via pi
diff --git a/.quire/ci.fnl b/.quire/ci.fnl
index 9629a3c..5c6b167 100644
--- a/.quire/ci.fnl
+++ b/.quire/ci.fnl
@@ -1,12 +1,12 @@
(local {: job} (require :quire.ci))
-(import-macros {: defrun} :quire.ci)
(local {: mirror} (require :quire.stdlib))
-; (job :test [:quire/push] (defrun [{: sh}] (sh [:cargo :test])))
+; (job :test [:quire/push] (fn [] (runtime.sh [:cargo :test])))
(job "quire/mirror" [:quire/push]
- (defrun [jobs secret]
- (let [push (jobs :quire/push)]
+ (fn []
+ (let [{: jobs : secret} (. (require :quire.ci) :runtime)
+ push (jobs :quire/push)]
(when (= push.ref "refs/heads/main")
(mirror {:url "https://github.com/kejadlen/quire.git"
:auth-header (secret :github_auth_header)