Add --printUnusedTemplates

Fixes #9502
This commit is contained in:
Bjørn Erik Pedersen
2022-02-15 15:26:18 +01:00
parent 923419d7fd
commit f2e7b49acf
12 changed files with 167 additions and 9 deletions

View File

@@ -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