diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-02-15 17:26:18 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-02-15 22:01:57 +0300 |
commit | f2e7b49acfaeab4e1a28cb1096f6461b555900fa (patch) | |
tree | 1dbcdfe580801a81f978ee0b5dd7b89523da2b9c /tpl/template.go | |
parent | 923419d7fde2056f47668acb0981135bce543b7e (diff) |
Add --printUnusedTemplates
Fixes #9502
Diffstat (limited to 'tpl/template.go')
-rw-r--r-- | tpl/template.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tpl/template.go b/tpl/template.go index 0375b4a17..c5a6a44c0 100644 --- a/tpl/template.go +++ b/tpl/template.go @@ -44,6 +44,11 @@ type TemplateFinder interface { TemplateLookupVariant } +// UnusedTemplatesProvider lists unused templates if the build is configured to track those. +type UnusedTemplatesProvider interface { + UnusedTemplates() []FileInfo +} + // TemplateHandler finds and executes templates. type TemplateHandler interface { TemplateFinder |