Merge pull request #262 from jonathandturner/defer-evaluation

Fix table print for ls
This commit is contained in:
Jonathan Turner 2019-08-08 16:58:46 +12:00 committed by GitHub
commit 742cdbe97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,8 @@ pub fn autoview(
view_text_value(&input[0], &raw.call_info.source_map); view_text_value(&input[0], &raw.call_info.source_map);
} else if equal_shapes(&input) { } else if equal_shapes(&input) {
let table = context.expect_command("table"); let table = context.expect_command("table");
table.run(raw.with_input(input), &context.commands).await; let result = table.run(raw.with_input(input), &context.commands).await.unwrap();
result.collect::<Vec<_>>().await;
} else { } else {
println!("TODO!") println!("TODO!")
// TODO // TODO