Initial project structure cleanup
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
mod commands;
|
||||
|
||||
use commands::{
|
||||
files::read_text_file,
|
||||
network::ping_host,
|
||||
router::{
|
||||
capture_wireguard_public_key,
|
||||
detect_router,
|
||||
flash_router,
|
||||
run_provisioning,
|
||||
upload_firmware,
|
||||
upload_provisioning_bundle,
|
||||
verify_router,
|
||||
wait_for_ssh,
|
||||
},
|
||||
ssh::remove_known_host,
|
||||
};
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_dialog::init())
|
||||
.plugin(tauri_plugin_fs::init())
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
read_text_file,
|
||||
ping_host,
|
||||
remove_known_host,
|
||||
detect_router,
|
||||
upload_firmware,
|
||||
flash_router,
|
||||
wait_for_ssh,
|
||||
upload_provisioning_bundle,
|
||||
run_provisioning,
|
||||
capture_wireguard_public_key,
|
||||
verify_router,
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
Reference in New Issue
Block a user