minio: Add config-folder option.

Fixes #997
This commit is contained in:
Harshavardhana
2015-12-06 14:31:20 -08:00
parent a97c4ebce3
commit 836f5204af
19 changed files with 149 additions and 202 deletions
+1 -16
View File
@@ -16,12 +16,7 @@
package main
import (
"encoding/json"
"github.com/minio/cli"
"github.com/minio/minio-xl/pkg/probe"
)
import "github.com/minio/cli"
// Print config version.
var configVersionCmd = cli.Command{
@@ -48,15 +43,5 @@ func mainConfigVersion(ctx *cli.Context) {
// convert interface{} back to its original struct
newConf := config
type Version string
if globalJSONFlag {
tB, e := json.Marshal(
struct {
Version Version `json:"version"`
}{Version: Version(newConf.Version)},
)
fatalIf(probe.NewError(e), "Unable to construct version string.", nil)
Println(string(tB))
return
}
Println(newConf.Version)
}