mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 20:50:22 +03:00
new version format and some cleanup
This commit is contained in:
+3
-13
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user