41 lines
1.4 KiB
Rust
41 lines
1.4 KiB
Rust
mod commands;
|
|
mod models;
|
|
mod net;
|
|
mod scanner;
|
|
|
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
pub fn run() {
|
|
tracing_subscriber::fmt()
|
|
.with_env_filter(
|
|
tracing_subscriber::EnvFilter::try_from_default_env()
|
|
.unwrap_or_else(|_| "argus=debug".into()),
|
|
)
|
|
.init();
|
|
|
|
tauri::Builder::default()
|
|
.plugin(tauri_plugin_opener::init())
|
|
.plugin(tauri_plugin_dialog::init())
|
|
.invoke_handler(tauri::generate_handler![
|
|
commands::scan::start_scan,
|
|
commands::scan::stop_scan,
|
|
commands::export::export_csv,
|
|
commands::actions::launch_url,
|
|
commands::traceroute::run_traceroute,
|
|
commands::nmap::run_nmap,
|
|
commands::nmap::stop_nmap,
|
|
commands::monitor::monitor_add_hosts,
|
|
commands::monitor::monitor_remove_host,
|
|
commands::monitor::monitor_clear,
|
|
commands::monitor::monitor_get_entries,
|
|
commands::monitor::monitor_start,
|
|
commands::monitor::monitor_stop,
|
|
commands::updater::check_for_update,
|
|
commands::actions::check_privileges,
|
|
commands::changelog::get_changelog,
|
|
commands::monitor::monitor_update_label,
|
|
commands::monitor::monitor_resolve_host
|
|
])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|