Skip to content

Commit c6f48d1

Browse files
address feedback
1 parent 07328c8 commit c6f48d1

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

cmd/render.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
var RenderLongDescription = `Use this command to render the consolidated changelog.
1818
1919
--version is required. Consolidated changelog version (x.y.z) in 'changelogs' folder
20-
--file_type is optional. Specify the file_type: 'asciidoc' or 'markdown'
20+
--file_type is optional. Specify the file_type: 'asciidoc' or 'markdown'. Default: markdown
2121
--template is optional. Specify full path to your template file or use predefined templates. Default: asciidoc-embedded`
2222

2323
func RenderCmd(fs afero.Fs) *cobra.Command {

internal/assets/assets.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ import (
1515
func GetEmbeddedTemplates() embeddedTemplates {
1616
return map[string]string{
1717
"asciidoc-embedded": "asciidoc-template.asciidoc",
18-
"markdown-index": "markdown-index-template.md",
19-
"markdown-breaking": "markdown-breaking-template.md",
20-
"markdown-deprecations": "markdown-deprecations-template.md",
18+
"markdown-index": "markdown-index-template.md.tmpl",
19+
"markdown-breaking": "markdown-breaking-template.md.tmpl",
20+
"markdown-deprecations": "markdown-deprecations-template.md.tmpl",
2121
}
2222
}
2323

2424
//go:embed asciidoc-template.asciidoc
2525
var AsciidocTemplate embed.FS
2626

27-
//go:embed markdown-index-template.md
27+
//go:embed markdown-index-template.md.tmpl
2828
var MarkdownIndexTemplate embed.FS
2929

30-
//go:embed markdown-breaking-template.md
30+
//go:embed markdown-breaking-template.md.tmpl
3131
var MarkdownBreakingTemplate embed.FS
3232

33-
//go:embed markdown-deprecations-template.md
33+
//go:embed markdown-deprecations-template.md.tmpl
3434
var MarkdownDeprecationsTemplate embed.FS
3535

3636
type embeddedTemplates map[string]string

internal/settings/settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func setDefaults() {
6060

6161
viper.SetDefault("changelog_destination", "changelog")
6262
viper.SetDefault("rendered_changelog_destination", "changelog")
63-
63+
viper.SetDefault("file_type", "markdown")
6464
viper.SetDefault("template", "asciidoc-embedded")
6565
}
6666

0 commit comments

Comments
 (0)