mirror of
https://github.com/kuhyx/todo-app.git
synced 2026-11-10 19:07:02 +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>
22 lines
664 B
Dart
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),
|
|
);
|
|
}
|