Improve CLI runtime list rendering#1461
Conversation
Greptile SummaryThis PR adds a dedicated Confidence Score: 5/5Safe to merge — the change is additive, schema-validated, and covered by regression tests across three Bun suites. All findings are P2 or lower. The implementation faithfully mirrors every other structured renderer in the file, the schema validation fallback is preserved, and the test covers both positive and negative assertions with a proper async guard. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "Clarify sync-only CLI stdout capture hel..." | Re-trigger Greptile |
What does this PR do?
Improves the CLI rendering for
appwrite functions list-runtimesby adding a dedicated structured renderer for theruntimescollection.Instead of falling back to the verbose per-item key/value block, the command now renders a compact aligned table with the fields that are most useful when choosing a runtime:
runtimeidbaseimageIt also adds a CLI regression test that asserts this renderer is used and that the old verbose layout is no longer emitted for runtime lists.
Test Plan
vendor/bin/phpunit tests/CLIBun13Test.phpvendor/bin/phpunit tests/CLIBun10Test.php tests/CLIBun11Test.phpdocker run --rm -v $(pwd):/app -w /app php:8.3-cli php example.php cliBefore
After