Skip to content

Commit

Permalink
Fix lexer in PrintYaml
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chelnak committed Jun 7, 2022
1 parent 178d1a9 commit 5731c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 5731c31

Please sign in to comment.