From 5731c316a3b727ba6896d71b3e4372234325ffb0 Mon Sep 17 00:00:00 2001 From: Craig Gumbley Date: Tue, 7 Jun 2022 11:19:28 +0100 Subject: [PATCH] Fix lexer in PrintYaml Prior to this commit, the lexer was set incorrectly to json in the PrintYaml method. This lead to broken colourization of the config when printing as yaml. --- internal/pkg/configuration/configuration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/configuration/configuration.go b/internal/pkg/configuration/configuration.go index be034e6..cd44e9b 100644 --- a/internal/pkg/configuration/configuration.go +++ b/internal/pkg/configuration/configuration.go @@ -93,7 +93,7 @@ func (c *configuration) PrintYAML(noColor bool, writer io.Writer) error { opts := writeOptions{ data: string(y), - lexerName: "json", + lexerName: "yaml", noColor: noColor, writer: writer, }