todo-app/bin/todo_note.dart
Krzysztof kuhy Rudnicki 341a943277
Some checks failed
dependency freshness / dependencies on newest stable (push) Has been cancelled
file-length / file length <= 250 lines (push) Has been cancelled
md-naming / markdown naming convention (push) Has been cancelled
release-apk / release (APK) (push) Has been cancelled
repo-contract / repo contract (push) Has been cancelled
CLI: --set-status <id> <status> re-statuses a note and pushes
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-19 17:22:58 +02:00

23 lines
731 B
Dart

// Headless note CLI: add, list, get, re-status 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>
// dart run bin/todo_note.dart --set-status <id> done
//
// 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),
);
}