Rename CLI benchmark command

This commit is contained in:
David Heinemeier Hansson
2026-07-22 17:32:01 -07:00
parent 568d7548e0
commit c544440469
2 changed files with 4 additions and 4 deletions
@@ -2,7 +2,7 @@
# omarchy:summary=Measure Omarchy CLI response times # omarchy:summary=Measure Omarchy CLI response times
# omarchy:args=[--repeat=<count>] # omarchy:args=[--repeat=<count>]
# omarchy:examples=omarchy dev benchmark | omarchy dev benchmark --repeat=10 # omarchy:examples=omarchy dev benchmark cli | omarchy dev benchmark cli --repeat=10
set -euo pipefail set -euo pipefail
@@ -13,7 +13,7 @@ REPEAT=5
show_help() { show_help() {
cat <<'EOF' cat <<'EOF'
Usage: Usage:
omarchy dev benchmark [--repeat=<count>] omarchy dev benchmark cli [--repeat=<count>]
Measure response times for common Omarchy CLI surfaces. Measure response times for common Omarchy CLI surfaces.
+2 -2
View File
@@ -70,7 +70,7 @@ pass "commands --all does not crash"
"$CLI" commands --all --json | jq -e '.commands[] | select(.route == "omarchy hyprland window gaps toggle" and .summary != "undocumented")' >/dev/null "$CLI" commands --all --json | jq -e '.commands[] | select(.route == "omarchy hyprland window gaps toggle" and .summary != "undocumented")' >/dev/null
pass "fallback commands are inferred and documented" pass "fallback commands are inferred and documented"
"$CLI" commands --all --json | jq -e '.commands[] | select(.route == "omarchy dev benchmark")' >/dev/null "$CLI" commands --all --json | jq -e '.commands[] | select(.route == "omarchy dev benchmark cli")' >/dev/null
pass "benchmark command is discoverable in all commands" pass "benchmark command is discoverable in all commands"
"$CLI" commands --json | jq -e '.commands[] | select(.binary == "omarchy-pkg-add" and .route == "omarchy pkg add" and .filename_route == "omarchy pkg add" and (.routes | index("omarchy pkg add")))' >/dev/null "$CLI" commands --json | jq -e '.commands[] | select(.binary == "omarchy-pkg-add" and .route == "omarchy pkg add" and .filename_route == "omarchy pkg add" and (.routes | index("omarchy pkg add")))' >/dev/null
@@ -195,7 +195,7 @@ assert_output_contains "pkg add help shows direct route" "$output" "omarchy pkg
output=$("$CLI" system reboot --help) output=$("$CLI" system reboot --help)
assert_output_contains "system command help is safe" "$output" "omarchy-system-reboot" assert_output_contains "system command help is safe" "$output" "omarchy-system-reboot"
output=$("$CLI" dev benchmark --repeat=1) output=$("$CLI" dev benchmark cli --repeat=1)
assert_output_contains "benchmark command runs" "$output" "Omarchy CLI benchmark" assert_output_contains "benchmark command runs" "$output" "Omarchy CLI benchmark"
"$CLI" theme list >/dev/null "$CLI" theme list >/dev/null