diff --git a/bin/omarchy-dev-benchmark b/bin/omarchy-dev-benchmark-cli similarity index 94% rename from bin/omarchy-dev-benchmark rename to bin/omarchy-dev-benchmark-cli index 1108e798..f5dc3882 100755 --- a/bin/omarchy-dev-benchmark +++ b/bin/omarchy-dev-benchmark-cli @@ -2,7 +2,7 @@ # omarchy:summary=Measure Omarchy CLI response times # omarchy:args=[--repeat=] -# 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 @@ -13,7 +13,7 @@ REPEAT=5 show_help() { cat <<'EOF' Usage: - omarchy dev benchmark [--repeat=] + omarchy dev benchmark cli [--repeat=] Measure response times for common Omarchy CLI surfaces. diff --git a/test/cli b/test/cli index db3a4a0c..f192b7ec 100755 --- a/test/cli +++ b/test/cli @@ -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 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" "$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) 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" "$CLI" theme list >/dev/null