NewVersionCmd returns the cobra command that outputs version
()
| 8 | |
| 9 | // NewVersionCmd returns the cobra command that outputs version |
| 10 | func NewVersionCmd() *cobra.Command { |
| 11 | return &cobra.Command{ |
| 12 | Use: "version", |
| 13 | Args: cobra.NoArgs, |
| 14 | Short: "Prints version of devspace", |
| 15 | Run: func(cobraCmd *cobra.Command, args []string) { |
| 16 | fmt.Println("DevSpace version : " + upgrade.GetVersion()) |
| 17 | }, |
| 18 | } |
| 19 | } |
no test coverage detected