mirror of
https://github.com/nushell/nushell
synced 2024-11-11 07:34:14 +00:00
add in dbg info so I can see what is being matched on
This commit is contained in:
parent
0f27249319
commit
ca7ff37697
1 changed files with 13 additions and 7 deletions
|
@ -57,13 +57,19 @@ impl Command for Last {
|
||||||
let beginning_rows_to_skip = 2;
|
let beginning_rows_to_skip = 2;
|
||||||
|
|
||||||
match input {
|
match input {
|
||||||
PipelineData::Stream(stream) => Ok(stream
|
PipelineData::Stream(stream) => {
|
||||||
.skip(beginning_rows_to_skip.try_into().unwrap())
|
dbg!("Stream");
|
||||||
.into_pipeline_data()),
|
Ok(stream
|
||||||
PipelineData::Value(Value::List { vals, .. }) => Ok(vals
|
.skip(beginning_rows_to_skip.try_into().unwrap())
|
||||||
.into_iter()
|
.into_pipeline_data())
|
||||||
.skip(beginning_rows_to_skip.try_into().unwrap())
|
}
|
||||||
.into_pipeline_data()),
|
PipelineData::Value(Value::List { vals, .. }) => {
|
||||||
|
dbg!("Value");
|
||||||
|
Ok(vals
|
||||||
|
.into_iter()
|
||||||
|
.skip(beginning_rows_to_skip.try_into().unwrap())
|
||||||
|
.into_pipeline_data())
|
||||||
|
}
|
||||||
_ => {
|
_ => {
|
||||||
dbg!("Fall to the bottom");
|
dbg!("Fall to the bottom");
|
||||||
Ok(PipelineData::Value(Value::Nothing { span: call.head }))
|
Ok(PipelineData::Value(Value::Nothing { span: call.head }))
|
||||||
|
|
Loading…
Reference in a new issue