new version format and some cleanup

This commit is contained in:
Anand Babu (AB) Periasamy
2015-09-18 23:27:04 -07:00
parent 2141c9f70f
commit d1f1b7ac31
10 changed files with 109 additions and 151 deletions
+3 -13
View File
@@ -16,13 +16,7 @@
package main
import (
"net/http"
"time"
"github.com/minio/cli"
"github.com/minio/minio/pkg/version"
)
import "github.com/minio/cli"
var versionCmd = cli.Command{
Name: "version",
@@ -40,10 +34,6 @@ EXAMPLES:
}
func mainVersion(ctxx *cli.Context) {
t, _ := time.Parse(time.RFC3339Nano, version.Version)
if t.IsZero() {
Println("")
return
}
Println(t.Format(http.TimeFormat))
Println("Version: " + minioVersion)
Println("Release-Tag: " + minioReleaseTag)
}