generate man pages via sub command

Signed-off-by: Christian Goll <cgoll@suse.de>
This commit is contained in:
Christian Goll
2023-03-02 11:01:11 +01:00
parent ab2139a1fd
commit 94866656a4
8 changed files with 52 additions and 78 deletions

View File

@@ -0,0 +1,23 @@
package man
import (
"github.com/spf13/cobra"
)
var (
baseCmd = &cobra.Command{
Use: "man",
Short: "manpage generation",
Long: "This command generates the man pages for all commands, needs target dir as argument",
RunE: CobraRunE,
Args: cobra.ExactArgs(1),
Aliases: []string{"man_pages"},
}
)
func init() {
}
func GetCommand() *cobra.Command {
return baseCmd
}