Skip to content

Commit 0f23f5a

Browse files
committed
chore: add uvs
1 parent fef42ce commit 0f23f5a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/keeper.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,24 @@ pub fn list_all_runner_tasks(
440440
}
441441
}
442442
}
443+
if runners::uv_scripts::is_available() {
444+
if runners::uv_scripts::is_command_available() {
445+
if let Ok(runner_tasks) = runners::uv_scripts::list_tasks() {
446+
if !runner_tasks.is_empty() {
447+
all_tasks.insert("uvs".to_string(), runner_tasks);
448+
}
449+
}
450+
} else {
451+
if error_display {
452+
println!(
453+
"{}",
454+
"[tk] uv(https://github.com/astral-sh/uv) command not available for pyproject.toml"
455+
.bold()
456+
.red()
457+
);
458+
}
459+
}
460+
}
443461
if runners::nurfile::is_available() {
444462
if runners::nurfile::is_command_available() {
445463
if let Ok(runner_tasks) = runners::nurfile::list_tasks() {

0 commit comments

Comments
 (0)