e21ba669创建于 2018年4月13日历史提交
package cmd

import (
	"fmt"

	"github.com/spf13/cobra"
)

// Version identifier populated via the CI/CD process.
var Version = "HEAD"

func newVersionCmd() *cobra.Command {
	return &cobra.Command{
		Use:   "version",
		Short: "Show version of the helm diff plugin",
		Run: func(*cobra.Command, []string) {
			fmt.Println(Version)
		},
	}
}