tofusoup
2025-05-28
Enable TUI launch, wire real data fetching, and fix test suite
22 files · 1,699+ · 840-
TUI and CLI activation
1 file changed
cli.pyWired browse command to launch TFBrowserApp and search command to run async queries against Terraform/OpenTofu registries with result formatting
- Connected CLI browse command to launch the Textual TUI and search command to execute live registry queries
decouple
behavioral
1 file
cli.py
Registry client refinements
3 files changed
opentofu.pyRestructured OpenTofu client to use api.opentofu.org search endpoint with internal _search_api_opentofu method, replaced search client with API clientterraform.pySimplified Terraform registry client implementationbase.pyUpdated abstract method signatures for get_provider_details and get_module_details to use individual namespace/name/version parameters instead of composite IDs
Dependency and test configuration fixes
6 files changed
pyproject.tomlPinned Textual to 3.2.0, added asyncio_default_fixture_loop_scope, consolidated duplicate dev dependency groups, added hypothesisuv.lockUpdated lock file with pinned Textual and new test dependenciestest_opentofu_registry.pyUpdated tests for new API-based search approachtest_registry_tofy_2.pyNew secondary OpenTofu registry integration test filetest_detail_view.pyFixed Tree widget label assertions for DetailViewtest_search_view.pyCorrected SearchView widget interaction tests