diff options
| author | lukeflo | 2024-09-22 23:55:38 +0200 |
|---|---|---|
| committer | lukeflo | 2024-09-22 23:55:38 +0200 |
| commit | f3cfa231055e36910a12d59107dcf33f9251b37a (patch) | |
| tree | 3df5cc4d091853d650467c956e9346fe0a113c94 /src/main.rs | |
| parent | dc45b960a4eda299058e597f6867e4d4be109b1b (diff) | |
| download | bibiman-f3cfa231055e36910a12d59107dcf33f9251b37a.tar.gz bibiman-f3cfa231055e36910a12d59107dcf33f9251b37a.zip | |
implemented entry list as table
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs index d199c9e..1b598be 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -use std::{fs, io}; +use std::io; use backend::cliargs::{self, CLIArgs}; use ratatui::{backend::CrosstermBackend, Terminal}; @@ -10,8 +10,6 @@ use crate::{ frontend::tui::Tui, }; -use sarge::prelude::*; - pub mod backend; pub mod frontend; @@ -26,21 +24,18 @@ async fn main() -> AppResult<()> { std::process::exit(0); } + // Print version if -v/--version flag is passed and exit if parsed_args.versionarg { - // println!("Version Zero"); println!("{}", cliargs::version_func()); std::process::exit(0); } + // TODO: Implement logic for CLI arguments/options which need to be handled // before the TUI is started // Create an application. let mut app = App::new(); - // TEST: Get Data from main bibliography - // let bibfile = fs::read_to_string("test.bib").unwrap(); - // let biblio = Bibliography::parse(&bibfile).unwrap(); - // Initialize the terminal user interface. let backend = CrosstermBackend::new(io::stdout()); let terminal = Terminal::new(backend)?; |
