Repository navigation
Integrate overlapping CLI entry-point changes - #21234
chessing234 wants to merge 15 commits into
Conversation
command_requires_args stripped only [...] groups from the whole usage string, so a top-level | left bare pipes and the other alternatives behind and wrongly required an argument. Bare 'omarchy boot switch' therefore showed help instead of running the binary, whose bare action is valid. Split the usage on top-level | (ignoring pipes inside [], () and <>) and only require an argument when every alternative needs one after stripping optional groups. This also fixes the same pattern in other commands whose first alternative is all-optional.
Strip trailing ... after [...] optional groups in command_requires_args so commands like omarchy-boot-rebuild ([--initramfs PKGBASE=FILE]... [PKGBASE...] | --pacman-install | --pacman-remove) also allow bare invocation, and add CLI router tests for optional and required alternatives.
…fails in omarchy doctor
|
@omarchybot @dhh combined the pull requests that all edit bin/omarchy so the command router only gets reviewed once. |
Confidence Score: 5/5
[Medium impact] The changes since the previous review appear safe to merge. SummaryThe PR combines CLI routing updates, Since the previous review:
Both numbered findings are fixed. No new actionable issues were found. Tests were not run during this review. The earlier quoting-rule thread for Reviews (4) · Last reviewed commit: "Keep CLI checks focused on command behav..." · Reviewed by Greptile |
|
is_check compares the argument unquoted and the check name as a literal on the right, so a name is not globbed. leaving that comparison. |
|
ready for a look @dhh @ryanrhughes |
|
Thanks for the time you put into this. Some of the fixes you added on top catch real bugs in the original PRs. I'm closing it anyway, along with the other Integrate PRs. Each bundle puts several people's work in one branch. We can't review it one change at a time or revert a single piece. Merging it would also leave every original PR open. That's why our PR template asks for one problem per PR. None of the bundles ran on an Omarchy install either. Please post each fix on the PR it belongs to, so its author can pick it up. If two PRs conflict, a comment on the later one helps us most. A small fix of your own, tested on a real install, is always welcome. Smaller and proven gets merged. Thanks! |
Summary
These four pull requests all edit
bin/omarchy, the command router. Help grouping, bare invocation,omarchy doctor, andomarchy modeland in the same dispatcher and the sametest/clicoverage. Reviewed separately, each one rewrites the router's alternative matching.omarchy doctor, a read-only health check. A later commit counts shells from every checkout and skips migrations when the helper fails.omarchy modeto set several settings at once and put them back #21062 (Joshua Pruitt) addsomarchy modefor reversible presets (focus, present, travel), restores animation flag files exactly, and finishes a restore that stopped halfway.The four cherry-picks applied on current
quattrowithout a conflict inbin/omarchy.Test plan
test/shell.d/doctor-test.shthrough the runtime-dir cases. The HOME-prefix case expecteddu -xh ~/runand printeddu -xh /~//runon this machine.test/shell.d/mode-test.shstops on the preset list.omarchy-modeusesdeclare -A, and the script's shebang is/bin/bash, which is Bash 3.2 here.Screenshots
No visible change: this is the command router, doctor, and mode presets. Nothing on the desktop drawing changes by itself.
Made with Cursor