Fix: Pass output stream to view_entries()
This commit is contained in:
parent
653db333e6
commit
279f7ef2aa
3 changed files with 5 additions and 1 deletions
|
@ -33,6 +33,7 @@ libimagstore = { version = "0.8.0", path = "../../../lib/core/libimagstore
|
||||||
libimagrt = { version = "0.8.0", path = "../../../lib/core/libimagrt" }
|
libimagrt = { version = "0.8.0", path = "../../../lib/core/libimagrt" }
|
||||||
libimagdiary = { version = "0.8.0", path = "../../../lib/domain/libimagdiary" }
|
libimagdiary = { version = "0.8.0", path = "../../../lib/domain/libimagdiary" }
|
||||||
libimagentryedit = { version = "0.8.0", path = "../../../lib/entry/libimagentryedit" }
|
libimagentryedit = { version = "0.8.0", path = "../../../lib/entry/libimagentryedit" }
|
||||||
|
libimagentryview = { version = "0.8.0", path = "../../../lib/entry/libimagentryview" }
|
||||||
libimaginteraction = { version = "0.8.0", path = "../../../lib/etc/libimaginteraction" }
|
libimaginteraction = { version = "0.8.0", path = "../../../lib/etc/libimaginteraction" }
|
||||||
libimagutil = { version = "0.8.0", path = "../../../lib/etc/libimagutil" }
|
libimagutil = { version = "0.8.0", path = "../../../lib/etc/libimagutil" }
|
||||||
libimagtimeui = { version = "0.8.0", path = "../../../lib/etc/libimagtimeui" }
|
libimagtimeui = { version = "0.8.0", path = "../../../lib/etc/libimagtimeui" }
|
||||||
|
|
|
@ -41,6 +41,7 @@ extern crate itertools;
|
||||||
|
|
||||||
extern crate libimagdiary;
|
extern crate libimagdiary;
|
||||||
extern crate libimagentryedit;
|
extern crate libimagentryedit;
|
||||||
|
extern crate libimagentryview;
|
||||||
extern crate libimagerror;
|
extern crate libimagerror;
|
||||||
extern crate libimaginteraction;
|
extern crate libimaginteraction;
|
||||||
#[macro_use] extern crate libimagrt;
|
#[macro_use] extern crate libimagrt;
|
||||||
|
|
|
@ -23,6 +23,7 @@ use libimagrt::runtime::Runtime;
|
||||||
use libimagerror::trace::MapErrTrace;
|
use libimagerror::trace::MapErrTrace;
|
||||||
use libimagutil::warn_exit::warn_exit;
|
use libimagutil::warn_exit::warn_exit;
|
||||||
use libimagstore::iter::get::StoreIdGetIteratorExtension;
|
use libimagstore::iter::get::StoreIdGetIteratorExtension;
|
||||||
|
use libimagentryview::viewer::Viewer;
|
||||||
|
|
||||||
use util::get_diary_name;
|
use util::get_diary_name;
|
||||||
|
|
||||||
|
@ -39,7 +40,8 @@ pub fn view(rt: &Runtime) {
|
||||||
::std::process::exit(1)
|
::std::process::exit(1)
|
||||||
}));
|
}));
|
||||||
|
|
||||||
DV::new(hdr).view_entries(entries)
|
let out = rt.stdout();
|
||||||
|
DV::new(hdr).view_entries(entries, &mut out.lock())
|
||||||
.map_err_trace_exit_unwrap(1);
|
.map_err_trace_exit_unwrap(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue