Add the client/server version of Epinio in `info`
This could be useful to ensure that we have the same version on both
client/server side, or at least compatible versions.
package usercmd
+import (
+ "github.com/epinio/epinio/internal/version"
+)
+
// Info displays information about environment
func (c *EpinioClient) Info() error {
log := c.Log.WithName("Info")
@@ -14,7 +18,8 @@ func (c *EpinioClient) Info() error {
c.ui.Success().
WithStringValue("Platform", v.Platform).
WithStringValue("Kubernetes Version", v.KubeVersion).
- WithStringValue("Epinio Version", v.Version).
+ WithStringValue("Epinio Server Version", v.Version).
+ WithStringValue("Epinio Client Version", version.Version).
Msg("Epinio Environment")
return nil
