Add nu utils and helix theme additions
parent
0b69c1aa13
commit
f8832d1de8
@ -0,0 +1,8 @@
|
|||||||
|
# convert json log entries into an array of nu log entries
|
||||||
|
export def `from json-lines` [] {
|
||||||
|
lines | each {|it| try { $it | from json } catch { {msg: $it} }}
|
||||||
|
}
|
||||||
|
|
||||||
|
export def `follow json-lines` [] {
|
||||||
|
lines | each {|it| try { $it | from json } catch { {msg: $it} } | table --expand | print} | ignore
|
||||||
|
}
|
Loading…
Reference in New Issue