Fix cli format flag fallback (#5057)

This commit is contained in:
Robert Kaussow
2025-04-03 07:32:15 +02:00
committed by GitHub
parent f6cfd3a60b
commit 73de1021a8

View File

@@ -58,7 +58,7 @@ func repoOutput(c *cli.Command, repos []*woodpecker.Repo, fd ...io.Writer) error
log.Warn().Msgf("the --format flag is deprecated, please use --output instead")
outFmt = "go-template"
outOpt = []string{legacyFmt}
outOpt = []string{fmt.Sprintf("{{range . }}%s{{ print \"\\n\" }}{{end}}", legacyFmt)}
}
var out io.Writer