summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-06-18 19:53:28 -0400
committerrsiddharth <s@ricketyspace.net>2019-06-18 19:53:28 -0400
commit289967b72c97f88a2352d9227f8e75b855bb680b (patch)
treea55a54805057badaadf8524d57f39d971e7c5d78
parentb085da5446b58254a82ee457568cf6929f278cfd (diff)
hn/g: Add g
* hn/g (g): New function. At least the baby didn't die.
-rwxr-xr-xhn/g6
1 files changed, 6 insertions, 0 deletions
diff --git a/hn/g b/hn/g
index 76a262d..f2920d6 100755
--- a/hn/g
+++ b/hn/g
@@ -91,3 +91,9 @@
(call-with-output-file f (λ (out) (write-json (cons slug l) out))
#:exists 'truncate))))
+(define (g)
+ (let* ((f (athings:file))
+ (h (athings:latest (athings:hash f) (athings))))
+ (call-with-output-file f (λ (out) (write-json h out)) #:exists 'truncate)
+ (athings:index (slug))))
+