mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Share version between API and fn tool (#525)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user