mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-01 15:03:11 +02:00
Filesystem Sync (#142)
This commit is contained in:
13
src-tauri/yaak-sync/src/commands.rs
Normal file
13
src-tauri/yaak-sync/src/commands.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use crate::error::Result;
|
||||
use crate::sync::{apply_sync, calculate_sync, SyncOp};
|
||||
use tauri::{command, Runtime, WebviewWindow};
|
||||
|
||||
#[command]
|
||||
pub async fn apply<R: Runtime>(window: WebviewWindow<R>, workspace_id: &str) -> Result<()> {
|
||||
apply_sync(&window, workspace_id).await
|
||||
}
|
||||
|
||||
#[command]
|
||||
pub async fn calculate<R: Runtime>(window: WebviewWindow<R>, workspace_id: &str) -> Result<Vec<SyncOp>> {
|
||||
calculate_sync(&window, workspace_id).await
|
||||
}
|
||||
Reference in New Issue
Block a user