diff options
Diffstat (limited to 'magefile.go')
-rw-r--r-- | magefile.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/magefile.go b/magefile.go index 883f96620..0cede2697 100644 --- a/magefile.go +++ b/magefile.go @@ -8,6 +8,7 @@ import ( "fmt" "io/ioutil" "os" + "path" "path/filepath" "runtime" "strings" @@ -67,6 +68,10 @@ func flagEnv() map[string]string { } } +func Generate() error { + return sh.RunWith(flagEnv(), goexe, "generate", path.Join(packageName, "tpl/tplimpl/embedded/generate")) +} + // Build hugo without git info func HugoNoGitInfo() error { ldflags = noGitLdflags |