silverbullet/plugs/sync/sync.ts

8 lines
225 B
TypeScript
Raw Normal View History

2023-08-28 23:12:15 +08:00
import { editor, sync } from "$sb/syscalls.ts";
export async function syncSpaceCommand() {
await editor.flashNotification("Syncing space...");
2023-08-16 02:24:02 +08:00
await sync.scheduleSpaceSync();
await editor.flashNotification("Done.");
}