Removes the use of init() to initialize the variable. - Closes: #1596 - See also: #1569 Signed-off-by: Jonathon Anderson <janderson@ciq.com>
20 lines
359 B
Go
20 lines
359 B
Go
package print
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
baseCmd = &cobra.Command{
|
|
Use: "print",
|
|
Short: "print wareweulf.conf",
|
|
Long: "This command prints the actual used warewulf.conf, can be used to create an empty valid warewulf.conf",
|
|
RunE: CobraRunE,
|
|
Args: cobra.ExactArgs(0),
|
|
}
|
|
)
|
|
|
|
func GetCommand() *cobra.Command {
|
|
return baseCmd
|
|
}
|