Appy/core/assembler.go

26 lines
455 B
Go
Raw Normal View History

2021-04-26 12:50:38 +00:00
package core
import (
"fmt"
"log"
"os/exec"
"github.com/digarok/appy/core/project"
"github.com/fatih/color"
2021-04-26 12:50:38 +00:00
)
var filesToAssemble []string
func Assemble() {
2021-11-25 15:07:11 +00:00
// assemble all files in list
for _, filename := range project.AppyProj.Assemble {
2021-04-26 12:50:38 +00:00
fmt.Printf("Assembling %v\n", filename)
out, err := exec.Command(project.LocalConf.Programs.Merlin32, "-V", filename).Output()
2021-04-26 12:50:38 +00:00
if err != nil {
color.Cyan(string(out))
2021-04-26 12:50:38 +00:00
log.Fatal(err)
}
}
}