Version is a package now, will be re-used across codebase.

This commit is contained in:
Harshavardhana
2015-09-17 20:06:28 -07:00
parent 1c5454e007
commit 7093a05ab1
8 changed files with 53 additions and 12 deletions

View File

@@ -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