Share version between API and fn tool (#525)

This commit is contained in:
Travis Reeder
2017-02-15 21:26:45 -08:00
committed by GitHub
parent 2890b909b1
commit 7f7d99feb4
4 changed files with 10 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ import (
"net/url"
"os"
vers "github.com/iron-io/functions/api/version"
functions "github.com/iron-io/functions_go"
"github.com/urfave/cli"
)
@@ -34,7 +35,7 @@ func (r *versionCmd) version(c *cli.Context) error {
}
r.Configuration.BasePath = u.String()
fmt.Println("Client version:", fnversion)
fmt.Println("Client version:", vers.Version)
v, _, err := r.VersionGet()
if err != nil {
return err