Skip to content

feat: add config show CLI command (fixes #4)#25

Open
nandanadileep wants to merge 1 commit into
roeimichael:mainfrom
nandanadileep:feat/issue-4-config-show
Open

feat: add config show CLI command (fixes #4)#25
nandanadileep wants to merge 1 commit into
roeimichael:mainfrom
nandanadileep:feat/issue-4-config-show

Conversation

@nandanadileep

Copy link
Copy Markdown

Summary

Fixes #4 — users can now inspect the effective configuration (TOML defaults + file + CAT_* env overrides) without reading source code.

  • context-analyzer-tool config show — Rich table with section/key/value and override highlighting
  • --format toml — print merged config as TOML (Rich markup disabled so [section] headers render correctly)
  • --config PATH — inspect a specific file
  • --no-highlight — disable default vs override column
  • Helpers: load_default_config(), config_to_toml() in config.py

Test plan

  • uv run pytest tests/test_cli_config.py tests/test_config.py — 16 passed
  • uv run ruff check on changed files
  • Manual: context-analyzer-tool config show
  • Manual: CAT_COLLECTOR_PORT=9001 context-analyzer-tool config show shows override highlight

Made with Cursor

Fixes roeimichael#4 — adds `context-analyzer-tool config show` with Rich table or
TOML output, config file path, and highlight for non-default overrides.
Includes helpers load_default_config() and config_to_toml() in config.py.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Add config show CLI command to display effective configuration

1 participant