Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions bin/omarchy
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
23 changes: 14 additions & 9 deletions test/cli
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Resolved

output=$("$CLI" screenshot --help)
assert_output_contains "root alias resolves to command help" "$output" "omarchy-capture-screenshot"

Expand Down