github.com/Synthesix/Sia@v1.3.3-0.20180413141344-f863baeed3ca/cmd/siac/mangencmd.go (about) 1 package main 2 3 import ( 4 "github.com/spf13/cobra" 5 "github.com/spf13/cobra/doc" 6 ) 7 8 var ( 9 mangenCmd = &cobra.Command{ 10 Use: "man-generation [path]", 11 Short: "Creates unix style manpages.", 12 Long: "Creates unix style man pages at the specified directory.", 13 Run: wrap(mangencmd), 14 } 15 ) 16 17 func mangencmd(path string) { 18 header := &doc.GenManHeader{ 19 Section: "1", 20 Manual: "siac Manual", 21 Source: "", 22 } 23 24 doc.GenManTree(rootCmd, header, path) 25 }