build: add inital support for dbus directive.

This commit is contained in:
Alexandre Pujol 2023-12-15 22:11:25 +00:00
parent 6fa2c8ec3a
commit 66a4a17924
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 154 additions and 0 deletions

View file

@ -49,6 +49,10 @@ func printBuildMessage() {
name := getFctName(fct)
logging.Success("%v", BuildMsg[name])
}
for _, fct := range Directives {
name := getFctName(fct)
logging.Success("%v", DirectiveMsg[name])
}
}
func Prepare() error {
@ -73,6 +77,9 @@ func Build() error {
for _, fct := range Builds {
profile = fct(profile)
}
for _, fct := range Directives {
profile = fct(file, profile)
}
if err := file.WriteFile([]byte(profile)); err != nil {
panic(err)
}