radio: files: .local/bin: Add prettify-sexp

impermanence
Luis Guilherme Coelho 2024-08-11 12:21:49 -03:00
parent 069a6b7989
commit 4fae41c85b
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/usr/bin/env -S guile
!#
(use-modules (ice-9 pretty-print)
(ice-9 match))
(pretty-print
(match (command-line)
[(_) (read)]
[(_ str) (with-input-from-string str read)]))