mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
engine-q merge
This commit is contained in:
@ -1,2 +0,0 @@
|
||||
mod until;
|
||||
mod while_;
|
@ -10,7 +10,11 @@ fn condition_is_met() {
|
||||
r#"
|
||||
CHICKEN SUMMARY report date: April 29th, 2020
|
||||
--------------------------------------------------------------------
|
||||
<<<<<<< HEAD
|
||||
Chicken Collection,29/04/2020,30/04/2020,31/04/2020,
|
||||
=======
|
||||
Chicken Collection,29/04/2020,30/04/2020,31/04/2020
|
||||
>>>>>>> 9259a56a28f1dd3a4b720ad815aa19c6eaf6adce
|
||||
Yellow Chickens,,,
|
||||
Andrés,0,0,1
|
||||
Jonathan,0,0,1
|
||||
@ -32,6 +36,7 @@ fn condition_is_met() {
|
||||
let actual = nu!(
|
||||
cwd: dirs.test(), pipeline(
|
||||
r#"
|
||||
<<<<<<< HEAD
|
||||
open --raw caballeros.txt
|
||||
| lines
|
||||
| skip 2
|
||||
@ -40,6 +45,17 @@ fn condition_is_met() {
|
||||
| skip until "Chicken Collection" == "Red Chickens"
|
||||
| skip 1
|
||||
| str to-int "31/04/2020"
|
||||
=======
|
||||
open --raw ./caballeros.txt
|
||||
| lines
|
||||
| skip 2
|
||||
| str trim
|
||||
| str collect (char nl)
|
||||
| from csv
|
||||
| skip until "Chicken Collection" == "Red Chickens"
|
||||
| skip 1
|
||||
| into int "31/04/2020"
|
||||
>>>>>>> 9259a56a28f1dd3a4b720ad815aa19c6eaf6adce
|
||||
| get "31/04/2020"
|
||||
| math sum
|
||||
"#
|
||||
|
@ -10,7 +10,11 @@ fn condition_is_met() {
|
||||
r#"
|
||||
CHICKEN SUMMARY report date: April 29th, 2020
|
||||
--------------------------------------------------------------------
|
||||
<<<<<<< HEAD
|
||||
Chicken Collection,29/04/2020,30/04/2020,31/04/2020,
|
||||
=======
|
||||
Chicken Collection,29/04/2020,30/04/2020,31/04/2020
|
||||
>>>>>>> 9259a56a28f1dd3a4b720ad815aa19c6eaf6adce
|
||||
Yellow Chickens,,,
|
||||
Andrés,0,0,1
|
||||
Jonathan,0,0,1
|
||||
@ -33,6 +37,7 @@ fn condition_is_met() {
|
||||
cwd: dirs.test(), pipeline(
|
||||
r#"
|
||||
open --raw caballeros.txt
|
||||
<<<<<<< HEAD
|
||||
| lines
|
||||
| skip 2
|
||||
| split column ','
|
||||
@ -40,6 +45,16 @@ fn condition_is_met() {
|
||||
| skip while "Chicken Collection" != "Red Chickens"
|
||||
| skip 1
|
||||
| str to-int "31/04/2020"
|
||||
=======
|
||||
| lines
|
||||
| skip 2
|
||||
| str trim
|
||||
| str collect (char nl)
|
||||
| from csv
|
||||
| skip while "Chicken Collection" != "Red Chickens"
|
||||
| skip 1
|
||||
| into int "31/04/2020"
|
||||
>>>>>>> 9259a56a28f1dd3a4b720ad815aa19c6eaf6adce
|
||||
| get "31/04/2020"
|
||||
| math sum
|
||||
"#
|
||||
|
Reference in New Issue
Block a user