Answer principles round 1: 0 🔴, 3 🟡 (0 misread); hand the home folder, the clock and the output to larv-review's commands from their wiring

This commit is contained in:
2026-11-13 03:04:44 +01:00
parent 87d5023773
commit e6da7b0b9c
22 changed files with 155 additions and 131 deletions
+4 -2
View File
@@ -112,7 +112,8 @@ def add(args: argparse.Namespace, config: ProjectConfig, stdin: typing.TextIO) -
return Failure(f"not filed: {under[0]}")
if unwritten := plan_file.write(todo, ranked.text):
return unwritten
plan_file.print_report(todo, ranked)
for line in plan_file.report_lines(todo, ranked):
print(line, file=sys.stderr)
return f"Filed item {id_} in {todo}."
@@ -126,7 +127,8 @@ def finish(args: argparse.Namespace, config: ProjectConfig) -> str | Failure:
return Failure(f"not finished: {unwritten.reason}")
if news is not None and (unwritten := plan_file.write(changelog, news)):
return Failure(f"{unwritten.reason}; todo.md no longer holds item {args.id}, so add its bullet by hand")
plan_file.print_report(todo, ranked)
for line in plan_file.report_lines(todo, ranked):
print(line, file=sys.stderr)
return f"Finished item {args.id} in {todo}."