Skip to content

Commit 2f73ecc

Browse files
committed
fix: no more Command deprecated warinings
1 parent 9a8c170 commit 2f73ecc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

report.nu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
def main (file: string, attr: string) {
44
open $file
5-
| filter {|x| $x.attr == $attr}
6-
| filter {|x| $x.error != null}
7-
| filter {|x| $x.type in ["EVAL", "BUILD"]}
5+
| where {|x| $x.attr == $attr}
6+
| where {|x| $x.error != null}
7+
| where {|x| $x.type in ["EVAL", "BUILD"]}
88
| $in.0
99
| match $in.type {
1010
"EVAL" => (do {

transform.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def main (file: string) {
2121
| lines
2222
| each {|row| $row | cut -c 6-}
2323
| each {|row| $row | from json}
24-
| filter {|log| $log.action == "msg"}
24+
| where {|log| $log.action == "msg"}
2525
| last
2626
| $in.msg
2727
})

0 commit comments

Comments
 (0)