1
0
silverbullet/plugs/core/sync.ts
2023-08-15 20:24:02 +02:00

8 lines
241 B
TypeScript

import { editor, sync } from "$sb/silverbullet-syscall/mod.ts";
export async function syncSpaceCommand() {
await editor.flashNotification("Syncing space...");
await sync.scheduleSpaceSync();
await editor.flashNotification("Done.");
}