Skip to content

Add --format=json support to CLI config command#1608

Merged
aliasaria merged 1 commit intomainfrom
add/cli-config-json-format
Mar 23, 2026
Merged

Add --format=json support to CLI config command#1608
aliasaria merged 1 commit intomainfrom
add/cli-config-json-format

Conversation

@aliasaria
Copy link
Copy Markdown
Member

Summary

  • The config command now respects the global --format=json flag for both list and set operations
  • List outputs a JSON array of key/value objects; set outputs the key/value pair on success or a JSON error on failure
  • Matches the existing pattern used by task list

Test plan

  • All 19 config tests pass (cd cli && python -m pytest tests/commands/test_config.py -v)
  • All 47 CLI tests pass (cd cli && python -m pytest tests/ -v)
  • ruff check and ruff format clean

The config command previously ignored the global --format flag. Now
list and set operations output structured JSON when --format=json is
passed, matching the behavior already available in task list.
@paragon-review
Copy link
Copy Markdown

Paragon Review Skipped

Hi @aliasaria! Your Polarity credit balance is insufficient to complete this review.

Please visit https://home.polarity.cc to add more credits and continue using Paragon reviews.

@aliasaria aliasaria merged commit a44116b into main Mar 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant