mirror of
https://github.com/kuhyx/todo-app.git
synced 2026-11-10 21:07:02 +01:00
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
12 lines
565 B
Dart
12 lines
565 B
Dart
import 'package:todo/data/desktop_backup_client.dart';
|
|
import 'package:todo/sync/desktop_wrapper.dart';
|
|
|
|
/// Writes the Markdown export through the desktop wrapper, so an explicit
|
|
/// Export still lands at the canonical `~/src/todo/BACKLOG.md` path the user's
|
|
/// tooling reads — the browser itself cannot write there.
|
|
Future<String> exportBacklog(String markdown, int noteCount) async {
|
|
final client = DesktopBackupClient(baseUrl: servingWrapperOrigin());
|
|
await client.writeBacklog(markdown);
|
|
return 'Exported $noteCount notes to ~/src/todo/BACKLOG.md';
|
|
}
|