feat(format): make stdout/stderr selection mutually exclusive

This commit is contained in:
2024-08-12 21:31:34 +02:00
parent c865878d1d
commit 76a73fc251
5 changed files with 35 additions and 39 deletions
+1 -2
View File
@@ -19,8 +19,7 @@ return {
rhs = function()
utils.format({
cmd = { "shfmt", "-s", "-i", "4", "-" },
stdin = true,
stdout = true,
output = "stdout",
})
end,
},
+3 -6
View File
@@ -44,8 +44,7 @@ return {
"--quiet",
"-",
},
stdin = true,
stdout = true,
output = "stdout",
})
utils.format({
cmd = {
@@ -53,8 +52,7 @@ return {
"--quiet",
"-",
},
stdin = true,
stdout = true,
output = "stdout",
})
end,
},
@@ -73,8 +71,7 @@ return {
"--line-ranges=%row_start%-%row_end%",
"-",
},
stdin = true,
stdout = true,
output = "stdout",
})
end,
},
+2 -4
View File
@@ -16,8 +16,7 @@ return {
rhs = function()
utils.format({
cmd = { "stylua", "-" },
stdin = true,
stdout = true,
output = "stdout",
})
end,
},
@@ -34,8 +33,7 @@ return {
"--range-end",
"%byte_end%",
},
stdin = true,
stdout = true,
output = "stdout",
})
end,
},
+3 -6
View File
@@ -44,8 +44,7 @@ return {
"--quiet",
"-",
},
stdin = true,
stdout = true,
output = "stdout",
})
utils.format({
cmd = {
@@ -53,8 +52,7 @@ return {
"--quiet",
"-",
},
stdin = true,
stdout = true,
output = "stdout",
})
end,
},
@@ -73,8 +71,7 @@ return {
"--line-ranges=%row_start%-%row_end%",
"-",
},
stdin = true,
stdout = true,
output = "stdout",
})
end,
},