Skip to content

Commit

Permalink
still use JSON if asked to
Browse files Browse the repository at this point in the history
  • Loading branch information
bjesus committed Sep 6, 2024
1 parent 7d05591 commit ee41354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/pipet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func runPipet(c *cli.Context, specFile string) error {

automaticTemplateFile := strings.TrimSuffix(specFile, filepath.Ext(specFile)) + ".tpl"

if templateFile == "" && utils.FileExists(automaticTemplateFile) {
if !jsonOutput && templateFile == "" && utils.FileExists(automaticTemplateFile) {
log.Println("Detected template file at", specFile)
templateFile = automaticTemplateFile
}
Expand Down

0 comments on commit ee41354

Please sign in to comment.