Skip to main content

Mountain/IPC/WindAirCommands/
RegisterWindAirCommands.rs

1
2//! Wire all 9 `WindAirCommands` Tauri commands into a Tauri
3//! `Builder`. The dispatcher itself is kept here so the command
4//! list stays a single source of truth. Each command is
5//! referenced by its full path so the `tauri::command` accessor
6//! macro resolves in its own module.
7
8pub fn Fn<R:tauri::Runtime>(builder:tauri::Builder<R>) -> tauri::Builder<R> {
9	builder.invoke_handler(tauri::generate_handler![
10		crate::IPC::WindAirCommands::CheckForUpdates::CheckForUpdates,
11		crate::IPC::WindAirCommands::DownloadUpdate::DownloadUpdate,
12		crate::IPC::WindAirCommands::ApplyUpdate::ApplyUpdate,
13		crate::IPC::WindAirCommands::DownloadFile::DownloadFile,
14		crate::IPC::WindAirCommands::AuthenticateUser::AuthenticateUser,
15		crate::IPC::WindAirCommands::IndexFiles::IndexFiles,
16		crate::IPC::WindAirCommands::SearchFiles::SearchFiles,
17		crate::IPC::WindAirCommands::GetAirStatus::GetAirStatus,
18		crate::IPC::WindAirCommands::GetAirMetrics::GetAirMetrics,
19	])
20}