Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Francia <steve.francia@gmail.com>2015-12-24 17:47:00 +0300
committerSteve Francia <steve.francia@gmail.com>2015-12-24 18:31:44 +0300
commit1d6286b0945d2cabc11db712e28dd3b0ccbbe269 (patch)
tree928b898977a8a45babd9da2f1478cdbbe85b693b /commands/genman.go
parenta291f3c5d94a7911f552bf607fef869e312ae3b7 (diff)
update to use cobra's sub package doc
Diffstat (limited to 'commands/genman.go')
-rw-r--r--commands/genman.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/commands/genman.go b/commands/genman.go
index ab2616aa2..e12d02773 100644
--- a/commands/genman.go
+++ b/commands/genman.go
@@ -18,6 +18,7 @@ import (
"strings"
"github.com/spf13/cobra"
+ "github.com/spf13/cobra/doc"
"github.com/spf13/hugo/helpers"
"github.com/spf13/hugo/hugofs"
jww "github.com/spf13/jwalterweatherman"
@@ -32,7 +33,7 @@ command-line interface. By default, it creates the man page files
in the "man" directory under the current directory.`,
RunE: func(cmd *cobra.Command, args []string) error {
- header := &cobra.GenManHeader{
+ header := &doc.GenManHeader{
Section: "1",
Manual: "Hugo Manual",
Source: fmt.Sprintf("Hugo %s", helpers.HugoVersion()),
@@ -47,7 +48,7 @@ in the "man" directory under the current directory.`,
cmd.Root().DisableAutoGenTag = true
jww.FEEDBACK.Println("Generating Hugo man pages in", genmandir, "...")
- cmd.Root().GenManTree(header, genmandir)
+ doc.GenManTree(cmd.Root(), header, genmandir)
jww.FEEDBACK.Println("Done.")