add selfnames to version file

This commit is contained in:
sentriz
2020-01-21 13:34:17 +00:00
parent 94b310b165
commit 2abd3cf70b
6 changed files with 19 additions and 19 deletions

View File

@@ -11,6 +11,8 @@ import (
"github.com/peterbourgon/ff"
"github.com/pkg/errors"
"senan.xyz/g/gonic/version"
)
// once i had this written with ~100% text/template but it was very
@@ -18,8 +20,7 @@ import (
// but it's pretty fast. which i needed it to for live reloading stuff
const (
programName = "gonicembed"
byteCols = 24
byteCols = 24
// begin file template
fileHeader = `// file generated with embed tool
@@ -122,7 +123,7 @@ func processAssets(c *config, files []string) error {
}
func main() {
set := flag.NewFlagSet(programName, flag.ExitOnError)
set := flag.NewFlagSet(version.NAME_EMBED, flag.ExitOnError)
outPath := set.String(
"out-path", "",
"generated file's path (required)")