limit table to 20 items
This commit is contained in:
parent
b7a865b48e
commit
ffc0659a84
@ -46,7 +46,7 @@ impl Review {
|
|||||||
Cell::new("title").add_attribute(comfy_table::Attribute::Bold),
|
Cell::new("title").add_attribute(comfy_table::Attribute::Bold),
|
||||||
Cell::new("number").add_attribute(comfy_table::Attribute::Bold),
|
Cell::new("number").add_attribute(comfy_table::Attribute::Bold),
|
||||||
])
|
])
|
||||||
.add_rows(prs.iter().map(|pr| {
|
.add_rows(prs.iter().take(20).map(|pr| {
|
||||||
let pr = pr.clone();
|
let pr = pr.clone();
|
||||||
vec![
|
vec![
|
||||||
Cell::new(pr.repository.name).fg(comfy_table::Color::Green),
|
Cell::new(pr.repository.name).fg(comfy_table::Color::Green),
|
||||||
|
Reference in New Issue
Block a user