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"