From 8f2dc95df36a6e2ce6ff42b746eae0ef281feee3 Mon Sep 17 00:00:00 2001 From: Cynnamoroll Date: Mon, 30 Nov 2026 08:00:31 +0000 Subject: [PATCH 1/2] Hide internal-only groups from CLI help Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- bin/omarchy | 2 -- test/cli | 23 ++++++++++++++--------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/bin/omarchy b/bin/omarchy index a01fa794f9a7..17823269dbe5 100755 --- a/bin/omarchy +++ b/bin/omarchy @@ -40,7 +40,6 @@ GROUP_DESCRIPTIONS[brightness]="Display and keyboard brightness" GROUP_DESCRIPTIONS[camera]="Webcam relay and image tuning" GROUP_DESCRIPTIONS[capture]="Screenshots and screen recording" GROUP_DESCRIPTIONS[channel]="Omarchy release channel management" -GROUP_DESCRIPTIONS[clipboard]="Clipboard helpers" GROUP_DESCRIPTIONS[cmd]="Command and shortcut helpers" GROUP_DESCRIPTIONS[config]="System configuration helpers" GROUP_DESCRIPTIONS[crash]="Crash notification controls" @@ -63,7 +62,6 @@ GROUP_DESCRIPTIONS[hw]="Hardware detection" GROUP_DESCRIPTIONS[hyprland]="Hyprland window, monitor, and toggle controls" GROUP_DESCRIPTIONS[icons]="App icon set management" GROUP_DESCRIPTIONS[install]="Optional software installers" -GROUP_DESCRIPTIONS[installed]="Installed optional service checks" GROUP_DESCRIPTIONS[launch]="Application launchers" GROUP_DESCRIPTIONS[kernel]="Default boot kernel selection" GROUP_DESCRIPTIONS[language]="Display language and system locale" diff --git a/test/cli b/test/cli index 9685cba9a1e0..66a5b966700e 100755 --- a/test/cli +++ b/test/cli @@ -234,16 +234,15 @@ if [[ $output == *"omarchy update perform"* ]]; then fi pass "hidden update perform compatibility wrapper is not shown" -# These three are install-time plumbing the ISO and install leaves call, so -# they stay out of the listing a user browses -- while still routing, because -# those callers use the CLI. A GROUP_DESCRIPTIONS entry would put the group -# back in the top-level listing even with every command in it hidden, which is -# why apply has none. +# Hidden-only groups stay out of the listing a user browses, while their +# commands still route for callers that use them directly. output=$(timeout 5 "$CLI") -if [[ $output == *"apply"* ]]; then - fail "a group whose commands are all hidden stays out of the top-level listing" -fi -pass "a group whose commands are all hidden stays out of the top-level listing" +for group in apply clipboard installed; do + if grep -Eq "^ $group[[:space:]]" <<<"$output"; then + fail "hidden-only group $group stays out of the top-level listing" + fi +done +pass "hidden-only groups stay out of the top-level listing" for internal in omarchy-apply-system omarchy-apply-hardware omarchy-apply-lock; do if jq -e --arg binary "$internal" '.commands[] | select(.binary == $binary)' "$commands_json_file" >/dev/null; then @@ -258,6 +257,12 @@ pass "install-time setup plumbing is hidden from the setup wizards" output=$(timeout 5 "$CLI" apply hardware --help) assert_output_contains "hidden setup plumbing still routes" "$output" "omarchy-apply-hardware" +output=$(timeout 5 "$CLI" clipboard paste text --help) +assert_output_contains "hidden clipboard command still routes" "$output" "omarchy-clipboard-paste-text" + +output=$(timeout 5 "$CLI" installed service dropbox --help) +assert_output_contains "hidden installed check still routes" "$output" "omarchy-installed-service-dropbox" + output=$("$CLI" screenshot --help) assert_output_contains "root alias resolves to command help" "$output" "omarchy-capture-screenshot" From 56b82aeb82943effbd75f256d7fef02505b172f1 Mon Sep 17 00:00:00 2001 From: Cynnamoroll Date: Mon, 30 Nov 2026 19:02:24 +0000 Subject: [PATCH 2/2] Keep CLI help coverage focused on the regression Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- test/cli | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/cli b/test/cli index 66a5b966700e..eb7b17dd7ac1 100755 --- a/test/cli +++ b/test/cli @@ -257,12 +257,6 @@ pass "install-time setup plumbing is hidden from the setup wizards" output=$(timeout 5 "$CLI" apply hardware --help) assert_output_contains "hidden setup plumbing still routes" "$output" "omarchy-apply-hardware" -output=$(timeout 5 "$CLI" clipboard paste text --help) -assert_output_contains "hidden clipboard command still routes" "$output" "omarchy-clipboard-paste-text" - -output=$(timeout 5 "$CLI" installed service dropbox --help) -assert_output_contains "hidden installed check still routes" "$output" "omarchy-installed-service-dropbox" - output=$("$CLI" screenshot --help) assert_output_contains "root alias resolves to command help" "$output" "omarchy-capture-screenshot"