Compare commits
2 Commits
5cfc021582
...
26db3fe460
Author | SHA1 | Date |
---|---|---|
Julius Riegel | 26db3fe460 | 4 weeks ago |
Julius Riegel | f8832d1de8 | 4 weeks ago |
@ -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