export the commands

This commit is contained in:
amtoine
2024-11-13 19:17:29 +01:00
parent e33d621311
commit 7b6d1acaee

View File

@ -30,11 +30,11 @@ export def "to jsonl" []: any -> string {
} }
# Convert from NDNUON, i.e. newline-delimited NUON, to structured # Convert from NDNUON, i.e. newline-delimited NUON, to structured
def "from ndnuon" []: [string -> any] { export def "from ndnuon" []: [string -> any] {
lines | each { from nuon } lines | each { from nuon }
} }
# Convert structured data to NDNUON, i.e. newline-delimited NUON # Convert structured data to NDNUON, i.e. newline-delimited NUON
def "to ndnuon" []: [any -> string] { export def "to ndnuon" []: [any -> string] {
each { to nuon --raw } | to text each { to nuon --raw } | to text
} }