Skip to content

Commit

Permalink
fix(uv): update command generator to use new script for processing ou…
Browse files Browse the repository at this point in the history
…tput
  • Loading branch information
BalliAsghar committed Dec 15, 2024
1 parent dfbf5fd commit 6b10c4d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/uv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 6b10c4d

Please sign in to comment.