Add example: discover all boards and batch-update firmware with progress bars - #16
Open
mullinmax wants to merge 2 commits into
Open
Add example: discover all boards and batch-update firmware with progress bars#16mullinmax wants to merge 2 commits into
mullinmax wants to merge 2 commits into
Conversation
…gress bars Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NF3RCp3snkLzcdDFdzmM1u
Coverage report✅ Total coverage: 100.00% (0.00% vs base |
mullinmax
marked this pull request as ready for review
July 18, 2026 19:39
…curately Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NF3RCp3snkLzcdDFdzmM1u
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
examples/update_all_boards.py, a runnable script that:warpedpinball.discover()./api/update/checkconcurrently and lists which boards have an update available, are up to date, or are unreachable.[#####----] 42%plus the latest streamed log message), driven by the{"log", "percent"}records fromMachine.apply_update(progress=...).The per-board progress display is a small lock-protected class that redraws all lines in place with ANSI cursor-up/erase-line escapes, falling back to plain sequential prints when stdout isn't a TTY. A board that fails mid-update shows
FAILED: ...on its own line without affecting the others.Also documents the new example in
docs/examples.md(table entry plus a walkthrough section), matching the style of the existing examples.🤖 Generated with Claude Code
https://claude.ai/code/session_01NF3RCp3snkLzcdDFdzmM1u
Generated by Claude Code