replace argparse.Namespace plumbing with typed command inputs

This commit is contained in:
Matteo Rosati
2026-04-22 16:03:51 +02:00
parent 8ebab832d5
commit 2962a2e088
15 changed files with 560 additions and 115 deletions
@@ -1,4 +1,4 @@
# 2. Replace `argparse.Namespace` Plumbing With Typed Command Inputs
# 2. Replace `argparse.Namespace` Plumbing With Typed Command Inputs [DONE]
## Summary
@@ -24,6 +24,10 @@ Stop passing mutable `argparse.Namespace` objects into handlers. Convert parsed
- Add parser-to-command conversion tests for every command and alias.
- Add handler unit tests that construct command dataclasses directly.
- Verify invalid delete filters still produce the same user-facing error.
- Test all commands to verify they still work:
- [creating, listing, deleting] collections
- [adding, deleting] documents to a collection (use [romeo_and_juliet.txt](romeo_and_juliet.txt))
- querying
## Assumptions