From 86133aa3bd79b6b43af8481abde772c44e687ea8 Mon Sep 17 00:00:00 2001
From: default <216188+jdx@users.noreply.github.com>
Date: Fri, 12 Jun 2026 06:27:17 +0000
Subject: [PATCH] test(completions): update usage 3.5 expectations
---
e2e/tasks/test_task_completion | 4 +--
e2e/tasks/test_task_completion_global_cd | 42 ++++++++++++------------
2 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/e2e/tasks/test_task_completion b/e2e/tasks/test_task_completion
index d4bd81b428..d492368c23 100644
--- a/e2e/tasks/test_task_completion
+++ b/e2e/tasks/test_task_completion
@@ -9,5 +9,5 @@ run = 'echo build'
EOF
mise usage >./mise.usage.kdl
-assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise tasks run build -- -c ''" "mise.toml mise.toml
-mise.usage.kdl mise.usage.kdl"
+assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise tasks run build -- -c ''" "mise.toml mise.toml
+mise.usage.kdl mise.usage.kdl"
diff --git a/e2e/tasks/test_task_completion_global_cd b/e2e/tasks/test_task_completion_global_cd
index a971f11649..671da2549c 100644
--- a/e2e/tasks/test_task_completion_global_cd
+++ b/e2e/tasks/test_task_completion_global_cd
@@ -20,35 +20,35 @@ EOF
mise usage >./mise.usage.kdl
# baseline: completion of the profile arg works without the global flag
-assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise run sample:run -- ''" "alpha alpha
-beta beta
-gamma gamma"
+assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise run sample:run -- ''" "alpha alpha
+beta beta
+gamma gamma"
# regression: with the global -C
flag before `run`, completion must still
# offer the choices (previously errored: Invalid choice for arg profile: -C)
-assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise -C . run sample:run -- ''" "alpha alpha
-beta beta
-gamma gamma"
+assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise -C . run sample:run -- ''" "alpha alpha
+beta beta
+gamma gamma"
# also cover the `tasks run` path, which shares the same flags/mount
-assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise -C . tasks run sample:run -- ''" "alpha alpha
-beta beta
-gamma gamma"
+assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise -C . tasks run sample:run -- ''" "alpha alpha
+beta beta
+gamma gamma"
# orphan-short flags: -r/--raw and -S/--silent have no short on the root global,
# so usage#649 alone would drop the short. The completion-spec promotion keeps
# them recognized before the mounted task (previously errored: unexpected word).
-assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise run -r sample:run -- ''" "alpha alpha
-beta beta
-gamma gamma"
-assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise run -S sample:run -- ''" "alpha alpha
-beta beta
-gamma gamma"
+assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise run -r sample:run -- ''" "alpha alpha
+beta beta
+gamma gamma"
+assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise run -S sample:run -- ''" "alpha alpha
+beta beta
+gamma gamma"
# and the same two over the `tasks run` path
-assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise tasks run -r sample:run -- ''" "alpha alpha
-beta beta
-gamma gamma"
-assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise tasks run -S sample:run -- ''" "alpha alpha
-beta beta
-gamma gamma"
+assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise tasks run -r sample:run -- ''" "alpha alpha
+beta beta
+gamma gamma"
+assert "mise exec -- usage complete-word --shell zsh -f ./mise.usage.kdl -- mise tasks run -S sample:run -- ''" "alpha alpha
+beta beta
+gamma gamma"