Add stdout-viewer
This commit is contained in:
parent
43d27ab689
commit
d02ac8bd88
3 changed files with 26 additions and 0 deletions
|
@ -24,6 +24,7 @@ mod viewer;
|
|||
use ui::build_ui;
|
||||
use viewer::Viewer;
|
||||
use viewer::ViewInformation;
|
||||
use viewer::stdout::StdoutViewer;
|
||||
|
||||
fn main() {
|
||||
let name = "imag-view";
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
pub mod stdout;
|
||||
|
||||
use libimagstore::store::Entry;
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
23
imag-view/src/viewer/stdout.rs
Normal file
23
imag-view/src/viewer/stdout.rs
Normal file
|
@ -0,0 +1,23 @@
|
|||
use std::io::{Stdout, stdout};
|
||||
|
||||
use viewer::{ViewInformation, Viewer};
|
||||
|
||||
pub struct StdoutViewer {
|
||||
out: Stdout,
|
||||
}
|
||||
|
||||
impl StdoutViewer {
|
||||
|
||||
pub fn new() -> StdoutViewer {
|
||||
StdoutViewer { out: stdout() }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
impl Viewer for StdoutViewer {
|
||||
|
||||
fn view(&self, vi: ViewInformation) {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue