Skip to content

Commit 5b41533

Browse files
committed
chore: add utility task for printing currently installed version of a UV package
1 parent 3a47e57 commit 5b41533

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.vscode/tasks.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,25 @@
180180
"clear": true,
181181
"panel": "dedicated"
182182
}
183+
},
184+
{
185+
"label": "Backend :: Show Dependency Version",
186+
"detail": "Print the currently installed version of a dependency",
187+
"group": "build",
188+
"type": "shell",
189+
"command": "uv tree --depth 0 --package ${input:depName}",
190+
"presentation": {
191+
"reveal": "always",
192+
"focus": true,
193+
"panel": "shared"
194+
}
195+
}
196+
],
197+
"inputs": [
198+
{
199+
"id": "depName",
200+
"type": "promptString",
201+
"description": "Dependency name (e.g. torch, pytest, etc):"
183202
}
184203
]
185204
}

0 commit comments

Comments
 (0)