Skip to main content

Mountain/IPC/WindAirCommands/
RegisterWindAirCommands.rs

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