diff options
| author | lukeflo | 2024-11-23 00:49:00 +0100 |
|---|---|---|
| committer | lukeflo | 2024-11-23 00:49:00 +0100 |
| commit | e354e97facdf61abb20a06f5bae2bac5e86c2d62 (patch) | |
| tree | ce3f15e72289f25f8c4a06fb5f5b891d3a643f60 /src/tui.rs | |
| parent | 53679da34cd7fe84aaac2a15f936e1450de7c125 (diff) | |
| download | bibiman-e354e97facdf61abb20a06f5bae2bac5e86c2d62.tar.gz bibiman-e354e97facdf61abb20a06f5bae2bac5e86c2d62.zip | |
implement needed dep injection of cli args
Diffstat (limited to 'src/tui.rs')
| -rw-r--r-- | src/tui.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,7 +19,7 @@ pub mod commands; pub mod popup; pub mod ui; -use crate::App; +use crate::{cliargs::CLIArgs, App}; use crossterm::{ cursor, event::{ @@ -194,11 +194,11 @@ impl Tui { // // [`Draw`]: ratatui::Terminal::draw // [`rendering`]: crate::ui::render - pub fn draw(&mut self, app: &mut App) -> Result<()> { + pub fn draw(&mut self, app: &mut App, args: &CLIArgs) -> Result<()> { // self.terminal.draw(|frame| ui::render(app, frame))?; self.terminal // .draw(|frame| frame.render_widget(app, frame.area()))?; - .draw(|frame| ui::render_ui(app, frame))?; + .draw(|frame| ui::render_ui(app, args, frame))?; Ok(()) } |
