breadman: add --screenshot CLI mode for automated capture

Same reasoning as breadpad, extending breadman's own hand-rolled arg
parser rather than adding clap. --screenshot <view> doubles as the view
selector — breadman already supports opening directly to a named stack
page via --view/initial_view, so this just feeds that same mechanism
instead of needing a separate one. Full known-size canvas capture, plain
top-level window (not layer-shell).

Also fixes the same NON_UNIQUE footgun as breadpad/breadbox/etc.
This commit is contained in:
Breadway 2026-07-29 16:37:01 +08:00
parent 879ec1e7f4
commit c13b7b0599
4 changed files with 132 additions and 6 deletions

1
Cargo.lock generated
View file

@ -338,6 +338,7 @@ name = "breadman"
version = "0.3.4"
dependencies = [
"anyhow",
"bread-screenshots",
"breadpad-shared",
"chrono",
"dirs 5.0.1",