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:
@@ -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}."
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user