mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 06:42:31 +02:00
export the commands
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user