Answer prose round 1: 0 🔴, 9 🟡 (0 misread); name the five as project records, cut what CLAUDE.md already says, and reword the comments the round named
CI / tests (pull_request) Successful in 2m27s
CI / tests (pull_request) Successful in 2m27s
This commit was merged in pull request #530.
This commit is contained in:
@@ -25,7 +25,7 @@ from failure import Failure
|
||||
from record_store.stores import FileStore, local_file, RECORDS, RecordStore, store, stored
|
||||
from project_config.main import located
|
||||
|
||||
# Three readers, seated as the human and as the agents that follow the rules, picked the spelling from five candidates: git's verbs, such as checkout and commit, or pull and push, read as acting on the repo.
|
||||
# Not git's verbs, such as checkout and commit: those read as acting on the repo.
|
||||
COMMANDS = ("open", "save")
|
||||
# Where the copy of a record kept outside files goes, under the user's home, in a folder per project.
|
||||
COPIES = ".local/state/project-record"
|
||||
@@ -49,7 +49,7 @@ def main(argv: list[str]) -> int:
|
||||
|
||||
|
||||
def act(command: str, record: RecordStore, copy: pathlib.Path) -> str | Failure:
|
||||
"""What command, one of COMMANDS, prints for record, whose copy goes at copy where it needs one."""
|
||||
"""What command, one of COMMANDS, prints for record. copy is where a record kept outside files gets its file."""
|
||||
if command == "open":
|
||||
opened = local_file(record, copy)
|
||||
return opened if isinstance(opened, Failure) else str(opened)
|
||||
|
||||
Reference in New Issue
Block a user