mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
update: Re-write update command.
This commit is contained in:
@@ -47,14 +47,12 @@ func mainConfigVersion(ctx *cli.Context) {
|
||||
|
||||
// convert interface{} back to its original struct
|
||||
newConf := config
|
||||
type Version struct {
|
||||
Value string `json:"value"`
|
||||
}
|
||||
type Version string
|
||||
if globalJSONFlag {
|
||||
tB, e := json.Marshal(
|
||||
struct {
|
||||
Version Version `json:"version"`
|
||||
}{Version: Version{newConf.Version}},
|
||||
}{Version: Version(newConf.Version)},
|
||||
)
|
||||
fatalIf(probe.NewError(e), "Unable to construct version string.", nil)
|
||||
Println(string(tB))
|
||||
|
||||
Reference in New Issue
Block a user