Fixup items after move provider from vk/vk

This commit is contained in:
Brian Goff
2019-06-14 12:49:28 -07:00
parent 38456348d6
commit a894106043
7 changed files with 33 additions and 33 deletions

View File

@@ -18,17 +18,16 @@ import (
"fmt"
"github.com/spf13/cobra"
"github.com/virtual-kubelet/virtual-kubelet/version"
)
// NewCommand creates a new version subcommand command
func NewCommand() *cobra.Command {
func NewCommand(version, buildTime string) *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "Show the version of the program",
Long: `Show the version of the program`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Version: %s, Built: %s\n", version.Version, version.BuildTime)
fmt.Printf("Version: %s, Built: %s\n", version, buildTime)
},
}
}