Files
warewulf/internal/app/wwctl/version/root.go
2021-11-29 10:56:48 +01:00

23 lines
427 B
Go

package version
import "github.com/spf13/cobra"
var (
baseCmd = &cobra.Command{
Use: "version",
Short: "Version information",
Long: "This command will print the Warewulf version.",
RunE: CobraRunE,
Args: cobra.ExactArgs(0),
Aliases: []string{"vers"},
}
)
func init() {
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}