diff options
-rw-r--r-- | magefile.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/magefile.go b/magefile.go index f913cec17..9b9dbd3d5 100644 --- a/magefile.go +++ b/magefile.go @@ -66,6 +66,7 @@ func flagEnv() map[string]string { } } +// Generate autogen packages func Generate() error { generatorPackages := []string{ "tpl/tplimpl/embedded/generate", @@ -101,6 +102,11 @@ func Generate() error { return nil } +// Generate docs helper +func GenDocsHelper() error { + return runCmd(flagEnv(), goexe, "run", "-tags", buildTags(), "main.go", "gen", "docshelper") +} + // Build hugo without git info func HugoNoGitInfo() error { ldflags = noGitLdflags @@ -334,5 +340,4 @@ func buildTags() string { return envtags } return "none" - } |