Skip to content

Integrate overlapping CLI entry-point changes - #21234

Closed
chessing234 wants to merge 15 commits into
omacom:quattrofrom
chessing234:integrate/cli-entry
Closed

chessing234 wants to merge 15 commits into
omacom:quattrofrom
chessing234:integrate/cli-entry

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

Summary

These four pull requests all edit bin/omarchy, the command router. Help grouping, bare invocation, omarchy doctor, and omarchy mode land in the same dispatcher and the same test/cli coverage. Reviewed separately, each one rewrites the router's alternative matching.

The four cherry-picks applied on current quattro without a conflict in bin/omarchy.

Test plan

  • test/shell.d/doctor-test.sh through the runtime-dir cases. The HOME-prefix case expected du -xh ~/run and printed du -xh /~//run on this machine.
  • test/shell.d/mode-test.sh stops on the preset list. omarchy-mode uses declare -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

Cynnamoroll and others added 11 commits December 2, 2026 07:53
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.
@chessing234

Copy link
Copy Markdown
Contributor Author

@omarchybot @dhh combined the pull requests that all edit bin/omarchy so the command router only gets reviewed once.

@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The changes since the previous review appear safe to merge.

Summary

The PR combines CLI routing updates, omarchy doctor, and reversible desktop modes.

Since the previous review:

  • Desktop modes change several settings and can put them back.
  • The doctor command reports the health of an Omarchy install.
  • Bare commands run when any documented argument choice is optional.
  • CLI help leaves groups made up of hidden commands out of the group list.

Both numbered findings are fixed. No new actionable issues were found. Tests were not run during this review.

The earlier quoting-rule thread for is_check was manually resolved by chessing234 without explanation.

Reviews (4) · Last reviewed commit: "Keep CLI checks focused on command behav..." · Reviewed by Greptile

Comment thread bin/omarchy-mode Resolved
Comment thread bin/omarchy-mode Resolved
Comment thread test/shell.d/doctor-test.sh Resolved
Comment thread bin/omarchy-doctor Resolved
@chessing234

Copy link
Copy Markdown
Contributor Author

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.

Comment thread bin/omarchy-mode Resolved
Comment thread test/shell.d/mode-test.sh Resolved
Comment thread test/shell.d/doctor-test.sh Resolved
@chessing234

Copy link
Copy Markdown
Contributor Author

ready for a look @dhh @ryanrhughes

@emirb

emirb commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

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!

@emirb emirb closed this Dec 2, 2026
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.

5 participants