49092d9ad7
- if passed file doesnt exist - check for hosts.txt - if no file passed - check for hosts.txt - if hosts.txt missing - default hosts
15 lines
435 B
Rust
15 lines
435 B
Rust
use clap::Parser;
|
|
use ratatui::widgets::TableState;
|
|
use pp::app_settings::AppSettings;
|
|
use pp::tui::ratatui_app::RatatuiApp;
|
|
fn main() -> color_eyre::Result<()> {
|
|
// find out what file we are using to get our hosts
|
|
let settings = AppSettings::parse();
|
|
|
|
color_eyre::install()?;
|
|
let terminal = ratatui::init();
|
|
let result = RatatuiApp::new(settings.ping_host_file).run(terminal);
|
|
ratatui::restore();
|
|
result
|
|
}
|