1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Update github.com/mjibson/esc (#515)

* Update github.com/mjibson/esc

* Update github.com/mjibson/esc
* Fix generate.go to new signature for esc.Run

* Internal: Upgrade to lastest "esc"
This commit is contained in:
Tom Limoncelli
2020-01-29 13:43:25 -05:00
committed by GitHub
parent 75756136cb
commit 92b51dbc65
6 changed files with 1419 additions and 126 deletions

View File

@ -2,6 +2,7 @@ package main
import (
"log"
"os"
"github.com/mjibson/esc/embed"
)
@ -15,7 +16,17 @@ func main() {
Private: true,
Files: []string{`pkg/js/helpers.js`},
}
embed.Run(conf)
var err error
out := os.Stdout
if conf.OutputFile != "" {
if out, err = os.Create(conf.OutputFile); err != nil {
log.Fatal(err)
}
defer out.Close()
}
embed.Run(conf, out)
if err := generateFeatureMatrix(); err != nil {
log.Fatal(err)