Version is a package now, will be re-used across codebase.
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/minio/pkg/version"
|
||||
)
|
||||
|
||||
var versionCmd = cli.Command{
|
||||
@@ -39,7 +40,7 @@ EXAMPLES:
|
||||
}
|
||||
|
||||
func mainVersion(ctxx *cli.Context) {
|
||||
t, _ := time.Parse(time.RFC3339Nano, Version)
|
||||
t, _ := time.Parse(time.RFC3339Nano, version.Version)
|
||||
if t.IsZero() {
|
||||
Println("")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user