build: add inital support for dbus directive.
This commit is contained in:
parent
6fa2c8ec3a
commit
66a4a17924
2 changed files with 154 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue