added version information
This commit is contained in:
16
internal/app/wwctl/version/main.go
Normal file
16
internal/app/wwctl/version/main.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package version
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var Version = "development"
|
||||
|
||||
func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
|
||||
fmt.Println("Version foo:\t", Version)
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user