Skip to content

Extract CLI output formatting into separate module#56

Merged
Michel Edkrantz (MichelEdkrantz) merged 1 commit intomasterfrom
extract-cli-output-formatting
Feb 20, 2026
Merged

Extract CLI output formatting into separate module#56
Michel Edkrantz (MichelEdkrantz) merged 1 commit intomasterfrom
extract-cli-output-formatting

Conversation

@MichelEdkrantz
Copy link
Copy Markdown
Member

Summary

  • Move presentation/formatting functions out of api_request.py into a new cli/_output.py module
  • Functions moved: _print_response, _print_table, _print_delimited, _extract_items, _stringify_value, _collect_fieldnames
  • api_request.py now imports _print_response from _output and retains only CLI wiring logic

Test plan

  • All 55 existing tests pass (uv run python -m pytest tests/test_cli.py)
  • ruff check and ruff format pass

🤖 Generated with Claude Code

Move presentation functions (_print_response, _print_table,
_print_delimited, _extract_items, _stringify_value, _collect_fieldnames)
from api_request.py into a dedicated cli/_output.py module.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@MichelEdkrantz Michel Edkrantz (MichelEdkrantz) merged commit 7b3a3da into master Feb 20, 2026
10 checks passed
@MichelEdkrantz Michel Edkrantz (MichelEdkrantz) deleted the extract-cli-output-formatting branch February 20, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant