return Error if get meet nothing and without "i" (#7002)

This commit is contained in:
Access
2022-12-31 19:27:09 +08:00
committed by GitHub
parent 9382dd6d55
commit 81a7d17b33
3 changed files with 37 additions and 5 deletions

View File

@ -71,7 +71,7 @@ fn cal_sees_pipeline_year() {
let actual = nu!(
cwd: ".", pipeline(
r#"
cal --full-year 1020 | get monday | first 4 | to json -r
cal --full-year 1020 | get -i monday | first 4 | to json -r
"#
));