todo-app/bin/todo_note.dart
Krzysztof kuhy Rudnicki 56cb1b3594
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
Add headless note CLI (bin/todo_note.dart) reusing app CRDT sync
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-16 15:35:46 +02:00

22 lines
664 B
Dart

// Headless note CLI: add, list, get or delete a todo note from the PC.
//
// dart run bin/todo_note.dart --text "Title\n\nbody" --priority high
// echo "Title" | dart run bin/todo_note.dart
// dart run bin/todo_note.dart --get <id>
//
// See `kUsage` in lib/cli/cli_args.dart for every flag. All behaviour lives
// in lib/cli/cli_runner.dart, where the tests reach it.
import 'dart:io';
import 'package:todo/cli/cli_runner.dart';
Future<void> main(List<String> argv) async {
exitCode = await runCli(
argv,
env: Platform.environment,
out: stdout,
err: stderr,
readStdin: () => readInput(stdin, hasTerminal: stdin.hasTerminal),
);
}