Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/vite_select/src/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ pub fn render_items(writer: &mut impl Write, params: &RenderParams<'_>) -> anyho
if is_interactive {
write!(
writer,
" {dim}{name}{reset}{line_ending}",
" {dim}{name}{reset}{line_ending}",
dim = SetAttribute(Attribute::Dim),
name = group_name,
reset = SetAttribute(Attribute::Reset),
Expand Down Expand Up @@ -797,7 +797,7 @@ mod tests {
assert_eq!(item_lines[0], " \u{203a} build: echo build app");
assert_eq!(item_lines[1], " lint: echo lint app");
// Group header
assert_eq!(item_lines[2], " lib (packages/lib)");
assert_eq!(item_lines[2], " lib (packages/lib)");
// Grouped items (indented by 2 more, less padding)
assert_eq!(item_lines[3], " build: echo build lib");
assert_eq!(item_lines[4], " lint: echo lint lib");
Expand All @@ -816,7 +816,7 @@ mod tests {
// All commands start at column 17 regardless of indent level
assert_eq!(item_lines[0], " \u{203a} build: echo build");
assert_eq!(item_lines[1], " typecheck: echo tc");
assert_eq!(item_lines[2], " lib");
assert_eq!(item_lines[2], " lib");
assert_eq!(item_lines[3], " build: echo build lib");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Select a task (↑/↓, Enter to run, Esc to clear):

› hello: echo hello from root
list-tasks: vp run
app (packages/app)
app (packages/app)
build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
@ write-key: enter
$ vp run ⊘ cache disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
› build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand All @@ -34,12 +34,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
› build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
› build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand All @@ -26,7 +26,7 @@ Select a task (↑/↓, Enter to run, Esc to clear):
Select a task (↑/↓, Enter to run, Esc to clear): lin

› lint: echo lint app
lib (packages/lib)
lib (packages/lib)
lint: echo lint lib
@ write-key: escape
@ expect-milestone: task-select::0
Expand All @@ -35,12 +35,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
› build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
› build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand All @@ -35,12 +35,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
› clean: echo clean root
deploy: echo deploy root
Expand All @@ -59,12 +59,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
› build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
› build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand All @@ -25,7 +25,7 @@ Select a task (↑/↓, Enter to run, Esc to clear):
@ expect-milestone: task-select:typec:0
Select a task (↑/↓, Enter to run, Esc to clear): typec

lib (packages/lib)
lib (packages/lib)
› typecheck: echo typecheck lib
@ write-key: enter
Selected task: lib#typecheck
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Select a task (↑/↓, Enter to run, Esc to clear):
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
app (packages/app)
app (packages/app)
build: echo build app
lint: echo lint app
test: echo test app
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand All @@ -28,7 +28,7 @@ Select a task (↑/↓, Enter to run, Esc to clear): t
› test: echo test lib
typecheck: echo typecheck lib
lint: echo lint lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
› build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand All @@ -26,7 +26,7 @@ Select a task (↑/↓, Enter to run, Esc to clear):
Select a task (↑/↓, Enter to run, Esc to clear): lin

› lint: echo lint app
lib (packages/lib)
lib (packages/lib)
lint: echo lint lib
@ write-key: enter
Selected task: lint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
› build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand All @@ -25,7 +25,7 @@ Select a task (↑/↓, Enter to run, Esc to clear):
@ expect-milestone: task-select:lib#:0
Select a task (↑/↓, Enter to run, Esc to clear): lib#

lib (packages/lib)
lib (packages/lib)
› build: echo build lib
lint: echo lint lib
test: echo test lib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
› build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand All @@ -30,12 +30,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
› build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Select a task (↑/↓, Enter to run, Esc to clear):
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
app (packages/app)
app (packages/app)
build: echo build app
lint: echo lint app
test: echo test app
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
› build: echo build app
lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand All @@ -28,12 +28,12 @@ Select a task (↑/↓, Enter to run, Esc to clear):
build: echo build app
› lint: echo lint app
test: echo test app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
lint: echo lint lib
test: echo test lib
typecheck: echo typecheck lib
task-select-test (workspace root)
task-select-test (workspace root)
check: echo check root
clean: echo clean root
deploy: echo deploy root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Task "buid" not found.
Select a task (↑/↓, Enter to run, Esc to clear): buid

› build: echo build app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
@ write-key: enter
Selected task: build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Task "buid" not found.
Select a task (↑/↓, Enter to run, Esc to clear): buid

› build: echo build app
lib (packages/lib)
lib (packages/lib)
build: echo build lib
@ write-key: enter
Selected task: build
Expand Down
Loading