From 6b10c4dfdcc636effb48f951ed7882b03fedd261 Mon Sep 17 00:00:00 2001 From: BalliAsghar Date: Sun, 15 Dec 2024 14:43:04 +0000 Subject: [PATCH] fix(uv): update command generator to use new script for processing output --- src/uv.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/uv.ts b/src/uv.ts index e3709bf33b43..3c1e46409f7b 100644 --- a/src/uv.ts +++ b/src/uv.ts @@ -23,10 +23,7 @@ const dependenciesGenerator: Fig.Generator = { const commandGenerator: Fig.Generator = { script: { command: "bash", - args: [ - "-c", - 'awk \'/\\[project\\.scripts\\]/ {f=1; next} /^\\[/ {f=0} f && /^[^#]/ {line = $0; sub(/[ \\t]*=.*/, "", line); gsub(/^[ \\t]+|[ \\t]+$/, "", line); print line}\' pyproject.toml', - ], + args: ["-c", `uv run | grep -E '^- ' | sed 's/^- //'`], }, postProcess: (out) => { return out.split("\n").map((line) => {