mirror of
https://github.com/kuhyx/todo-app.git
synced 2026-11-10 18:07:03 +01:00
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
file-length / file length <= 250 lines (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
16 lines
341 B
Dart
16 lines
341 B
Dart
import 'dart:async';
|
|
import 'dart:io';
|
|
|
|
import 'package:todo/mcp/mcp_main.dart';
|
|
|
|
Future<void> main() async {
|
|
final stop = await startTodoMcp(Platform.environment, stderr);
|
|
if (stop == null) exit(1);
|
|
await Future.any([
|
|
ProcessSignal.sigterm.watch().first,
|
|
ProcessSignal.sigint.watch().first,
|
|
]);
|
|
await stop();
|
|
exit(0);
|
|
}
|