Warewulf is now being maintained in its own GitHub organization at github.com/warewulf Signed-off-by: Jonathon Anderson <janderson@ciq.com>
19 lines
434 B
Go
19 lines
434 B
Go
package version
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
"github.com/warewulf/warewulf/internal/pkg/api/routes/wwapiv1"
|
|
"github.com/warewulf/warewulf/internal/pkg/version"
|
|
)
|
|
|
|
func CobraRunE(cmd *cobra.Command, args []string) error {
|
|
|
|
fmt.Println("wwctl version:\t", version.GetVersion())
|
|
|
|
var wwVersionResponse *wwapiv1.VersionResponse = version.Version()
|
|
fmt.Println("rpc version:", wwVersionResponse.String())
|
|
return nil
|
|
}
|