commit 889dc47ceba9cf5cbd6e61a9222a5e54cd562332
parent f720fe56db9e064d10b86d98e7bbd40fb1c8489f
Author: Cameron Moore <moorereason@gmail.com>
Date: Fri, 5 Jun 2020 10:48:37 -0500
Add genDocsHelper mage target
Expose the functionality of the hidden `hugo gen docshelper` command as
a mage target.
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git 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"
-
}