From 8aade59df9aafa6a74c8166c2d62e81a6949fde7 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 8 Aug 2024 11:58:30 -0500 Subject: [PATCH] noop changes --- modules/runes/generate.nu | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 = [ "" ...$cells "
" ] | 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