build: prepare new structure for directives.

This commit is contained in:
Alexandre Pujol 2024-03-21 20:36:41 +00:00
parent e1d1d0be3d
commit 2ca62215bc
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 159 additions and 3 deletions

View file

@ -89,6 +89,7 @@ func Build() error {
for _, fct := range Directives {
profile = fct(file, profile)
}
profile = directive.Run(file, profile)
if err := file.WriteFile([]byte(profile)); err != nil {
return err
}