github.com/pachyderm/pachyderm@v1.13.4/src/client/version.go (about) 1 package client 2 3 import ( 4 "github.com/gogo/protobuf/types" 5 "github.com/pachyderm/pachyderm/src/client/pkg/grpcutil" 6 "github.com/pachyderm/pachyderm/src/client/version" 7 ) 8 9 // Version returns the version of pachd as a string. 10 func (c APIClient) Version() (string, error) { 11 v, err := c.VersionAPIClient.GetVersion(c.Ctx(), &types.Empty{}) 12 if err != nil { 13 return "", grpcutil.ScrubGRPC(err) 14 } 15 return version.PrettyPrintVersion(v), nil 16 }