Removes the use of init() to initialize the variable. - Closes: #1596 - See also: #1569 Signed-off-by: Jonathon Anderson <janderson@ciq.com>
19 lines
451 B
Go
19 lines
451 B
Go
package hostfile
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
var (
|
|
baseCmd = &cobra.Command{
|
|
DisableFlagsInUseLine: true,
|
|
Use: "hostfile [OPTIONS]",
|
|
Short: "update hostfile on master",
|
|
Long: "Manage the hostfile on the master node\n",
|
|
RunE: CobraRunE,
|
|
}
|
|
)
|
|
|
|
// GetRootCommand returns the root cobra.Command for the application.
|
|
func GetCommand() *cobra.Command {
|
|
return baseCmd
|
|
}
|