Removes the use of init() to initialize the variable. - Closes: #1596 - See also: #1569 Signed-off-by: Jonathon Anderson <janderson@ciq.com>
21 lines
379 B
Go
21 lines
379 B
Go
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 GetCommand() *cobra.Command {
|
|
return baseCmd
|
|
}
|