Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/WindAirCommands/
RegisterWindAirCommands.rs

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