return string from draw_table instead of printing directly (#3088)

This commit is contained in:
rezural
2021-02-23 20:25:49 +11:00
committed by GitHub
parent 7f303a856e
commit 23d8dc959c
2 changed files with 41 additions and 17 deletions

View File

@ -238,7 +238,8 @@ async fn table(
if !input.is_empty() {
let t = from_list(&input, &configuration, start_number, &color_hm);
draw_table(&t, term_width, &color_hm);
let output = draw_table(&t, term_width, &color_hm);
println!("{}", output);
}
start_number += input.len();