diff --git a/modules/runes/generate.nu b/modules/runes/generate.nu
index b55e261..525e7dc 100755
--- a/modules/runes/generate.nu
+++ b/modules/runes/generate.nu
@@ -20,7 +20,7 @@ def convert [] {
}
}
-def nix [] {
+def nix-file [] {
let rune = $in | convert
$"{
braille = ''
@@ -34,8 +34,7 @@ ascii = ''
}
def col [] {
- $in
- | reduce --fold "" {|it, acc|
+ $in | reduce --fold "" {|it, acc|
$acc + $'
| '
}
}
@@ -45,7 +44,7 @@ def row [] { $"($in)
" }
def readme [] {
let runes = $in
let dims = { rows: 2 cols: 2 }
- let cells = ($runes | chunks $dims.rows | each { $in | col | row})
+ let cells = ($runes | chunks $dims.rows | each { col | row})
let table = [ "" ] | str join
$"# Runes\n\n($table)\n"
@@ -56,7 +55,7 @@ $runes
| save -f "README.md"
$runes
-| each {|rune| $rune | nix }
+| each { nix-file }
-print "don't forget to run `nix fmt`!"
+nix fmt