Files
helmfile/cmd/version.go
T
yxxhero 6a37ae9650 Add flags about need for lint subcmd (#273)
* fix typo

Signed-off-by: yxxhero <aiopsclub@163.com>

* add flags about needs for lint subcmd

Signed-off-by: yxxhero <aiopsclub@163.com>
2022-08-08 10:32:30 +09:00

23 lines
424 B
Go

package cmd
import (
"fmt"
"github.com/helmfile/helmfile/pkg/app/version"
"github.com/spf13/cobra"
)
// NewVersionCmd returns version subcmd
func NewVersionCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "version",
Short: "Show the version for Helmfile.",
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Println("Helmfile version " + version.GetVersion())
return nil
},
}
return cmd
}