Skip to content

Write show-* command output where the details are produced - #1540

Merged
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/vws-web-tools-issue-1498
Aug 27, 2026
Merged

Write show-* command output where the details are produced#1540
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/vws-web-tools-issue-1498

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Closes #1498.

show-database-details scraped the details inside a try, quit the driver in finally, and only then formatted and wrote them — so the block that reads details sat outside the block that produces it, and the reader has to check for themselves that the success path is the only way to reach it.

The formatting and the click.echo now live in the try, next to the scrape. The finally still quits the driver, so the browser is still cleaned up if writing to stdout fails.

I made the same move in show-vumark-database-details and show-license-details. They are the same shape, and fixing one of three would leave the file inconsistent for no reason.

This is the same pattern as #1480 and #1481.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM

Closes #1498

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tz9oY7GG92jssXJFUBDr5B
@adamtheturtle
adamtheturtle force-pushed the adamtheturtle/vws-web-tools-issue-1498 branch from d682751 to 1a73e2e Compare August 27, 2026 06:23
@adamtheturtle
adamtheturtle merged commit 82749e6 into main Aug 27, 2026
29 checks passed
@adamtheturtle
adamtheturtle deleted the adamtheturtle/vws-web-tools-issue-1498 branch August 27, 2026 07:35
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.

show_database_details quits driver before YAML emit on success path

1 participant