New ๐ŸŒŠ wave for @helm

Commit 5cf58303

5cf583033bb5Merged

zhilyaev <[email protected]> ยท 5 years ago ยท 1 file ยท ~1 modified

Description

version comeback

Details

Commit
5cf583033bb5
Parent
4696be171076

cmd/helmwave/main.gomodifiedView file

@@ -1,6 +1,7 @@
11 package main
22
33 import (
4+ "fmt"
45 "os"
56
67 "github.com/helmwave/helmwave/pkg/action"
@@ -20,6 +21,7 @@
2021 new(action.Down).Cmd(),
2122 new(action.Validate).Cmd(),
2223 new(action.Yml).Cmd(),
24+ version(),
2325 completion(),
2426 }
2527
@@ -51,3 +53,15 @@
5153 log.Errorf("๐Ÿ‘ป Command %q not found", s)
5254 os.Exit(127)
5355 }
56+
57+func version() *cli.Command {
58+ return &cli.Command{
59+ Name: "version",
60+ Aliases: []string{"ver"},
61+ Usage: "Show shorts version",
62+ Action: func(c *cli.Context) error {
63+ fmt.Println(helmwave.Version)
64+ return nil
65+ },
66+ }
67+}