Initial Commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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::get_config,
|
||||
commands::updater::save_config,
|
||||
commands::updater::check_for_update,
|
||||
commands::actions::check_privileges,
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
Reference in New Issue
Block a user