We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33ea3fd commit 35ee1f6Copy full SHA for 35ee1f6
2 files changed
hooks/jsonnet-fmt-hook/main.go
@@ -177,8 +177,7 @@ func execJsonnetFmt(f string, opts []string) error {
177
178
args := make([]string, 0, len(opts)+2)
179
args = append(args, opts...)
180
- args = append(args, "--")
181
- args = append(args, f)
+ args = append(args, []string{"--", f}...)
182
183
cmd := execabs.Command(jsonnetFmtCmd, args...)
184
cmd.Stderr = &stderr
hooks/jsonnet-lint-hook/main.go
@@ -32,8 +32,7 @@ func execJsonnetLint(f string, opts []string) error {
32
33
34
35
36
37
cmd := execabs.Command(jsonnetLintCmd, args...)
38
39
err := cmd.Run()
0 commit comments