diff --git a/internal/runner/runner.go b/internal/runner/runner.go index b32f7e2f6..2a3c2c470 100644 --- a/internal/runner/runner.go +++ b/internal/runner/runner.go @@ -125,6 +125,14 @@ func New(options *types.Options) (*Runner, error) { } } + // if template list or template display is enabled, enable all templates + if options.TemplateList || options.TemplateDisplay { + options.EnableCodeTemplates = true + options.EnableFileTemplates = true + options.EnableSelfContainedTemplates = true + options.EnableGlobalMatchersTemplates = true + } + // check for custom template updates and update if available ctm, err := customtemplates.NewCustomTemplatesManager(options) if err != nil {