Skip to content

Commit 44eeb5a

Browse files
enable templates for template listing and displaying (#6343)
1 parent e1f8a18 commit 44eeb5a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/runner/runner.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,14 @@ func New(options *types.Options) (*Runner, error) {
125125
}
126126
}
127127

128+
// if template list or template display is enabled, enable all templates
129+
if options.TemplateList || options.TemplateDisplay {
130+
options.EnableCodeTemplates = true
131+
options.EnableFileTemplates = true
132+
options.EnableSelfContainedTemplates = true
133+
options.EnableGlobalMatchersTemplates = true
134+
}
135+
128136
// check for custom template updates and update if available
129137
ctm, err := customtemplates.NewCustomTemplatesManager(options)
130138
if err != nil {

0 commit comments

Comments
 (0)