Commit fb93f6f
feat: restrict interactive task selector to bare
## Summary
- The interactive task selector now only appears for bare `vp run` or
simple `vp run <taskname>` (cwd-only). Running with scope flags like
`-r`, `-t`, `-w`, or `--filter` will show an error instead of the
selector when the task is not found.
- After selecting a task from the interactive selector, prints
**Selected task:** followed by the task name before executing.
- Error messages now include the task name: `Task "buid" not found`
instead of the generic `no tasks matched the query`.
- `vp run --verbose` (or any non-scope flag without a task) correctly
errors with "No task specifier provided" instead of showing the
selector.
- `vp run buid --verbose` still enters the selector since `--verbose` is
not a scope flag — only package-scope flags (`-r`, `-t`, `-w`,
`--filter`) gate the selector.
## Test plan
- [x] `cargo test -p vite_task_bin --test e2e_snapshots -- task-select`
— all pass
- [x] `cargo test` — all pass
- [x] `just lint` — clean
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>vp run and cwd-only (#183)1 parent 3a6f3d8 commit fb93f6f
File tree
26 files changed
+244
-171
lines changed- crates
- vite_task_bin/tests/e2e_snapshots/fixtures
- task-list/snapshots
- task-select-truncate/snapshots
- task-select
- snapshots
- vite_task_plan/src
- vite_task/src
- cli
- session
- vite_workspace/src
26 files changed
+244
-171
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
156 | 157 | | |
157 | | - | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
167 | 171 | | |
168 | | - | |
169 | | - | |
| 172 | + | |
| 173 | + | |
170 | 174 | | |
171 | 175 | | |
0 commit comments