Explicitely state that printing an empty table is forbidden
This commit is contained in:
parent
404d839310
commit
ff39a450b1
1 changed files with 3 additions and 0 deletions
|
@ -208,6 +208,7 @@ fn today(rt: &Runtime) {
|
||||||
TableLister::new(lister_fn)
|
TableLister::new(lister_fn)
|
||||||
.with_header(lister_header())
|
.with_header(lister_header())
|
||||||
.with_idx(true)
|
.with_idx(true)
|
||||||
|
.print_empty(false)
|
||||||
.list(relevant.into_iter())
|
.list(relevant.into_iter())
|
||||||
.map_err_trace_exit_unwrap(1);
|
.map_err_trace_exit_unwrap(1);
|
||||||
}
|
}
|
||||||
|
@ -252,6 +253,7 @@ fn list(rt: &Runtime) {
|
||||||
TableLister::new(lister_fn)
|
TableLister::new(lister_fn)
|
||||||
.with_header(lister_header())
|
.with_header(lister_header())
|
||||||
.with_idx(true)
|
.with_idx(true)
|
||||||
|
.print_empty(false)
|
||||||
.list(iter)
|
.list(iter)
|
||||||
.map_err_trace_exit_unwrap(1);
|
.map_err_trace_exit_unwrap(1);
|
||||||
}
|
}
|
||||||
|
@ -319,6 +321,7 @@ fn show(rt: &Runtime) {
|
||||||
TableLister::new(instance_lister_fn)
|
TableLister::new(instance_lister_fn)
|
||||||
.with_header(instance_lister_header())
|
.with_header(instance_lister_header())
|
||||||
.with_idx(true)
|
.with_idx(true)
|
||||||
|
.print_empty(false)
|
||||||
.list(instances_iter)
|
.list(instances_iter)
|
||||||
.map_err_trace_exit_unwrap(1);
|
.map_err_trace_exit_unwrap(1);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue