From 71c4ff9d10cca3203f1067f5701133663ab3dba7 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 21 May 2018 11:11:57 -0700 Subject: [PATCH] Fix tabs/indents in help message (#5962) --- cmd/gateway-main.go | 9 ++++---- cmd/gateway/azure/gateway-azure.go | 34 +++++++++++++----------------- cmd/gateway/b2/gateway-b2.go | 27 +++++++++++------------- cmd/gateway/gcs/gateway-gcs.go | 33 +++++++++++++---------------- cmd/gateway/manta/gateway-manta.go | 32 ++++++++++++++-------------- cmd/gateway/nas/gateway-nas.go | 29 ++++++++++++------------- cmd/gateway/oss/gateway-oss.go | 27 +++++++++++------------- cmd/gateway/s3/gateway-s3.go | 33 +++++++++++++---------------- cmd/gateway/sia/gateway-sia.go | 19 +++++++---------- cmd/server-main.go | 29 ++++++++++++------------- cmd/update-main.go | 2 +- cmd/version-main.go | 2 +- 12 files changed, 127 insertions(+), 149 deletions(-) diff --git a/cmd/gateway-main.go b/cmd/gateway-main.go index 8c2fc7421..ef06354b2 100644 --- a/cmd/gateway-main.go +++ b/cmd/gateway-main.go @@ -33,6 +33,11 @@ import ( "github.com/minio/minio/cmd/logger" ) +func init() { + logger.Init(GOPATH) + logger.RegisterUIError(fmtError) +} + var ( gatewayCmd = cli.Command{ Name: "gateway", @@ -102,10 +107,6 @@ func ValidateGatewayArguments(serverAddr, endpointAddr string) error { return nil } -func init() { - logger.Init(GOPATH) -} - // StartGateway - handler for 'minio gateway '. func StartGateway(ctx *cli.Context, gw Gateway) { if gw == nil { diff --git a/cmd/gateway/azure/gateway-azure.go b/cmd/gateway/azure/gateway-azure.go index 7af92a931..dc3d65188 100644 --- a/cmd/gateway/azure/gateway-azure.go +++ b/cmd/gateway/azure/gateway-azure.go @@ -75,36 +75,32 @@ ENVIRONMENT VARIABLES: BROWSER: MINIO_BROWSER: To disable web browser access, set this value to "off". + DOMAIN: + MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. + CACHE: MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";". MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";". MINIO_CACHE_EXPIRY: Cache expiry duration in days. - UPDATE: - MINIO_UPDATE: To turn off in-place upgrades, set this value to "off". - - DOMAIN: - MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. - EXAMPLES: 1. Start minio gateway server for Azure Blob Storage backend. - $ export MINIO_ACCESS_KEY=azureaccountname - $ export MINIO_SECRET_KEY=azureaccountkey - $ {{.HelpName}} + $ export MINIO_ACCESS_KEY=azureaccountname + $ export MINIO_SECRET_KEY=azureaccountkey + $ {{.HelpName}} 2. Start minio gateway server for Azure Blob Storage backend on custom endpoint. - $ export MINIO_ACCESS_KEY=azureaccountname - $ export MINIO_SECRET_KEY=azureaccountkey - $ {{.HelpName}} https://azure.example.com + $ export MINIO_ACCESS_KEY=azureaccountname + $ export MINIO_SECRET_KEY=azureaccountkey + $ {{.HelpName}} https://azure.example.com 3. Start minio gateway server for Azure Blob Storage backend with edge caching enabled. - $ export MINIO_ACCESS_KEY=azureaccountname - $ export MINIO_SECRET_KEY=azureaccountkey - $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" - $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" - $ export MINIO_CACHE_EXPIRY=40 - $ {{.HelpName}} - + $ export MINIO_ACCESS_KEY=azureaccountname + $ export MINIO_SECRET_KEY=azureaccountkey + $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" + $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" + $ export MINIO_CACHE_EXPIRY=40 + $ {{.HelpName}} ` minio.RegisterGatewayCommand(cli.Command{ diff --git a/cmd/gateway/b2/gateway-b2.go b/cmd/gateway/b2/gateway-b2.go index 2a02159cb..40b05eef9 100644 --- a/cmd/gateway/b2/gateway-b2.go +++ b/cmd/gateway/b2/gateway-b2.go @@ -65,30 +65,27 @@ ENVIRONMENT VARIABLES: BROWSER: MINIO_BROWSER: To disable web browser access, set this value to "off". + DOMAIN: + MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. + CACHE: MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";". MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";". MINIO_CACHE_EXPIRY: Cache expiry duration in days. - UPDATE: - MINIO_UPDATE: To turn off in-place upgrades, set this value to "off". - - DOMAIN: - MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. - EXAMPLES: 1. Start minio gateway server for B2 backend. - $ export MINIO_ACCESS_KEY=accountID - $ export MINIO_SECRET_KEY=applicationKey - $ {{.HelpName}} + $ export MINIO_ACCESS_KEY=accountID + $ export MINIO_SECRET_KEY=applicationKey + $ {{.HelpName}} 2. Start minio gateway server for B2 backend with edge caching enabled. - $ export MINIO_ACCESS_KEY=accountID - $ export MINIO_SECRET_KEY=applicationKey - $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" - $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" - $ export MINIO_CACHE_EXPIRY=40 - $ {{.HelpName}} + $ export MINIO_ACCESS_KEY=accountID + $ export MINIO_SECRET_KEY=applicationKey + $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" + $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" + $ export MINIO_CACHE_EXPIRY=40 + $ {{.HelpName}} ` minio.RegisterGatewayCommand(cli.Command{ Name: b2Backend, diff --git a/cmd/gateway/gcs/gateway-gcs.go b/cmd/gateway/gcs/gateway-gcs.go index 6b97e912a..2be8a0681 100644 --- a/cmd/gateway/gcs/gateway-gcs.go +++ b/cmd/gateway/gcs/gateway-gcs.go @@ -111,36 +111,33 @@ ENVIRONMENT VARIABLES: BROWSER: MINIO_BROWSER: To disable web browser access, set this value to "off". + DOMAIN: + MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. + CACHE: MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";". MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";". MINIO_CACHE_EXPIRY: Cache expiry duration in days. - UPDATE: - MINIO_UPDATE: To turn off in-place upgrades, set this value to "off". - - DOMAIN: - MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. - GCS credentials file: GOOGLE_APPLICATION_CREDENTIALS: Path to credentials.json EXAMPLES: 1. Start minio gateway server for GCS backend. - $ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json - (Instructions to generate credentials : https://developers.google.com/identity/protocols/application-default-credentials) - $ export MINIO_ACCESS_KEY=accesskey - $ export MINIO_SECRET_KEY=secretkey - $ {{.HelpName}} mygcsprojectid + $ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json + (Instructions to generate credentials : https://developers.google.com/identity/protocols/application-default-credentials) + $ export MINIO_ACCESS_KEY=accesskey + $ export MINIO_SECRET_KEY=secretkey + $ {{.HelpName}} mygcsprojectid 2. Start minio gateway server for GCS backend with edge caching enabled. - $ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json - $ export MINIO_ACCESS_KEY=accesskey - $ export MINIO_SECRET_KEY=secretkey - $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" - $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" - $ export MINIO_CACHE_EXPIRY=40 - $ {{.HelpName}} mygcsprojectid + $ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json + $ export MINIO_ACCESS_KEY=accesskey + $ export MINIO_SECRET_KEY=secretkey + $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" + $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" + $ export MINIO_CACHE_EXPIRY=40 + $ {{.HelpName}} mygcsprojectid ` minio.RegisterGatewayCommand(cli.Command{ diff --git a/cmd/gateway/manta/gateway-manta.go b/cmd/gateway/manta/gateway-manta.go index 5129aee9a..3ae9692dd 100644 --- a/cmd/gateway/manta/gateway-manta.go +++ b/cmd/gateway/manta/gateway-manta.go @@ -81,28 +81,28 @@ ENVIRONMENT VARIABLES: EXAMPLES: 1. Start minio gateway server for Manta Object Storage backend. - $ export MINIO_ACCESS_KEY=manta_account_name - $ export MINIO_SECRET_KEY=manta_key_id - $ {{.HelpName}} + $ export MINIO_ACCESS_KEY=manta_account_name + $ export MINIO_SECRET_KEY=manta_key_id + $ {{.HelpName}} 2. Start minio gateway server for Manta Object Storage backend on custom endpoint. - $ export MINIO_ACCESS_KEY=manta_account_name - $ export MINIO_SECRET_KEY=manta_key_id - $ {{.HelpName}} https://us-west.manta.joyent.com + $ export MINIO_ACCESS_KEY=manta_account_name + $ export MINIO_SECRET_KEY=manta_key_id + $ {{.HelpName}} https://us-west.manta.joyent.com 3. Start minio gateway server for Manta Object Storage backend without using SSH Agent. - $ export MINIO_ACCESS_KEY=manta_account_name - $ export MINIO_SECRET_KEY=manta_key_id - $ export MANTA_KEY_MATERIAL=~/.ssh/custom_rsa - $ {{.HelpName}} + $ export MINIO_ACCESS_KEY=manta_account_name + $ export MINIO_SECRET_KEY=manta_key_id + $ export MANTA_KEY_MATERIAL=~/.ssh/custom_rsa + $ {{.HelpName}} 4. Start minio gateway server for Manta Object Storage backend with edge caching enabled. - $ export MINIO_ACCESS_KEY=manta_account_name - $ export MINIO_SECRET_KEY=manta_key_id - $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" - $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" - $ export MINIO_CACHE_EXPIRY=40 - $ {{.HelpName}} + $ export MINIO_ACCESS_KEY=manta_account_name + $ export MINIO_SECRET_KEY=manta_key_id + $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" + $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" + $ export MINIO_CACHE_EXPIRY=40 + $ {{.HelpName}} ` minio.RegisterGatewayCommand(cli.Command{ diff --git a/cmd/gateway/nas/gateway-nas.go b/cmd/gateway/nas/gateway-nas.go index 9a5c67be4..f368bffed 100644 --- a/cmd/gateway/nas/gateway-nas.go +++ b/cmd/gateway/nas/gateway-nas.go @@ -40,7 +40,7 @@ FLAGS: {{range .VisibleFlags}}{{.}} {{end}}{{end}} PATH: - path to NAS mount point. + Path to NAS mount point. ENVIRONMENT VARIABLES: ACCESS: @@ -50,30 +50,27 @@ ENVIRONMENT VARIABLES: BROWSER: MINIO_BROWSER: To disable web browser access, set this value to "off". + DOMAIN: + MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. + CACHE: MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";". MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";". MINIO_CACHE_EXPIRY: Cache expiry duration in days. - UPDATE: - MINIO_UPDATE: To turn off in-place upgrades, set this value to "off". - - DOMAIN: - MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. - EXAMPLES: 1. Start minio gateway server for NAS backend. - $ export MINIO_ACCESS_KEY=accesskey - $ export MINIO_SECRET_KEY=secretkey - $ {{.HelpName}} /shared/nasvol + $ export MINIO_ACCESS_KEY=accesskey + $ export MINIO_SECRET_KEY=secretkey + $ {{.HelpName}} /shared/nasvol 2. Start minio gateway server for NAS with edge caching enabled. - $ export MINIO_ACCESS_KEY=accesskey - $ export MINIO_SECRET_KEY=secretkey - $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" - $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" - $ export MINIO_CACHE_EXPIRY=40 - $ {{.HelpName}} /shared/nasvol + $ export MINIO_ACCESS_KEY=accesskey + $ export MINIO_SECRET_KEY=secretkey + $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" + $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" + $ export MINIO_CACHE_EXPIRY=40 + $ {{.HelpName}} /shared/nasvol ` minio.RegisterGatewayCommand(cli.Command{ diff --git a/cmd/gateway/oss/gateway-oss.go b/cmd/gateway/oss/gateway-oss.go index 7b554a122..9b29fd3db 100644 --- a/cmd/gateway/oss/gateway-oss.go +++ b/cmd/gateway/oss/gateway-oss.go @@ -67,9 +67,6 @@ ENVIRONMENT VARIABLES: BROWSER: MINIO_BROWSER: To disable web browser access, set this value to "off". - UPDATE: - MINIO_UPDATE: To turn off in-place upgrades, set this value to "off". - DOMAIN: MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. @@ -80,22 +77,22 @@ ENVIRONMENT VARIABLES: EXAMPLES: 1. Start minio gateway server for Aliyun OSS backend. - $ export MINIO_ACCESS_KEY=accesskey - $ export MINIO_SECRET_KEY=secretkey - $ {{.HelpName}} + $ export MINIO_ACCESS_KEY=accesskey + $ export MINIO_SECRET_KEY=secretkey + $ {{.HelpName}} 2. Start minio gateway server for Aliyun OSS backend on custom endpoint. - $ export MINIO_ACCESS_KEY=Q3AM3UQ867SPQQA43P2F - $ export MINIO_SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG - $ {{.HelpName}} https://oss.example.com + $ export MINIO_ACCESS_KEY=Q3AM3UQ867SPQQA43P2F + $ export MINIO_SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG + $ {{.HelpName}} https://oss.example.com 3. Start minio gateway server for Aliyun OSS backend with edge caching enabled. - $ export MINIO_ACCESS_KEY=accesskey - $ export MINIO_SECRET_KEY=secretkey - $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" - $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" - $ export MINIO_CACHE_EXPIRY=40 - $ {{.HelpName}} + $ export MINIO_ACCESS_KEY=accesskey + $ export MINIO_SECRET_KEY=secretkey + $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" + $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" + $ export MINIO_CACHE_EXPIRY=40 + $ {{.HelpName}} ` minio.RegisterGatewayCommand(cli.Command{ diff --git a/cmd/gateway/s3/gateway-s3.go b/cmd/gateway/s3/gateway-s3.go index 97fe90f52..38eb149a5 100644 --- a/cmd/gateway/s3/gateway-s3.go +++ b/cmd/gateway/s3/gateway-s3.go @@ -58,35 +58,32 @@ ENVIRONMENT VARIABLES: BROWSER: MINIO_BROWSER: To disable web browser access, set this value to "off". + DOMAIN: + MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. + CACHE: MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";". MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";". MINIO_CACHE_EXPIRY: Cache expiry duration in days. - UPDATE: - MINIO_UPDATE: To turn off in-place upgrades, set this value to "off". - - DOMAIN: - MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. - EXAMPLES: 1. Start minio gateway server for AWS S3 backend. - $ export MINIO_ACCESS_KEY=accesskey - $ export MINIO_SECRET_KEY=secretkey - $ {{.HelpName}} + $ export MINIO_ACCESS_KEY=accesskey + $ export MINIO_SECRET_KEY=secretkey + $ {{.HelpName}} 2. Start minio gateway server for S3 backend on custom endpoint. - $ export MINIO_ACCESS_KEY=Q3AM3UQ867SPQQA43P2F - $ export MINIO_SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG - $ {{.HelpName}} https://play.minio.io:9000 + $ export MINIO_ACCESS_KEY=Q3AM3UQ867SPQQA43P2F + $ export MINIO_SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG + $ {{.HelpName}} https://play.minio.io:9000 3. Start minio gateway server for AWS S3 backend with edge caching enabled. - $ export MINIO_ACCESS_KEY=accesskey - $ export MINIO_SECRET_KEY=secretkey - $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" - $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" - $ export MINIO_CACHE_EXPIRY=40 - $ {{.HelpName}} + $ export MINIO_ACCESS_KEY=accesskey + $ export MINIO_SECRET_KEY=secretkey + $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" + $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" + $ export MINIO_CACHE_EXPIRY=40 + $ {{.HelpName}} ` minio.RegisterGatewayCommand(cli.Command{ diff --git a/cmd/gateway/sia/gateway-sia.go b/cmd/gateway/sia/gateway-sia.go index 23b3d7aa9..f10d19673 100644 --- a/cmd/gateway/sia/gateway-sia.go +++ b/cmd/gateway/sia/gateway-sia.go @@ -72,29 +72,26 @@ ENVIRONMENT VARIABLES: (Default values in parenthesis) BROWSER: MINIO_BROWSER: To disable web browser access, set this value to "off". + DOMAIN: + MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. + CACHE: MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";". MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";". MINIO_CACHE_EXPIRY: Cache expiry duration in days. - UPDATE: - MINIO_UPDATE: To turn off in-place upgrades, set this value to "off". - - DOMAIN: - MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name. - SIA_TEMP_DIR: The name of the local Sia temporary storage directory. (.sia_temp) SIA_API_PASSWORD: API password for Sia daemon. (default is empty) EXAMPLES: 1. Start minio gateway server for Sia backend. - $ {{.HelpName}} + $ {{.HelpName}} 2. Start minio gateway server for Sia backend with edge caching enabled. - $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" - $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" - $ export MINIO_CACHE_EXPIRY=40 - $ {{.HelpName}} + $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" + $ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png" + $ export MINIO_CACHE_EXPIRY=40 + $ {{.HelpName}} ` minio.RegisterGatewayCommand(cli.Command{ diff --git a/cmd/server-main.go b/cmd/server-main.go index 28b683d31..feb19411f 100644 --- a/cmd/server-main.go +++ b/cmd/server-main.go @@ -31,6 +31,11 @@ import ( "github.com/minio/minio/cmd/logger" ) +func init() { + logger.Init(GOPATH) + logger.RegisterUIError(fmtError) +} + var serverFlags = []cli.Flag{ cli.StringFlag{ Name: "address", @@ -85,23 +90,23 @@ ENVIRONMENT VARIABLES: EXAMPLES: 1. Start minio server on "/home/shared" directory. - $ {{.HelpName}} /home/shared + $ {{.HelpName}} /home/shared 2. Start minio server bound to a specific ADDRESS:PORT. - $ {{.HelpName}} --address 192.168.1.101:9000 /home/shared + $ {{.HelpName}} --address 192.168.1.101:9000 /home/shared 3. Start minio server and enable virtual-host-style requests. - $ export MINIO_DOMAIN=mydomain.com - $ {{.HelpName}} --address mydomain.com:9000 /mnt/export + $ export MINIO_DOMAIN=mydomain.com + $ {{.HelpName}} --address mydomain.com:9000 /mnt/export 4. Start minio server on 64 disks server with endpoints through environment variable. - $ export MINIO_ENDPOINTS=/mnt/export{1...64} - $ {{.HelpName}} + $ export MINIO_ENDPOINTS=/mnt/export{1...64} + $ {{.HelpName}} 5. Start distributed minio server on an 8 node setup with 8 drives each. Run following command on all the 8 nodes. - $ export MINIO_ACCESS_KEY=minio - $ export MINIO_SECRET_KEY=miniostorage - $ {{.HelpName}} http://node{1...8}.example.com/mnt/export/{1...8} + $ export MINIO_ACCESS_KEY=minio + $ export MINIO_SECRET_KEY=miniostorage + $ {{.HelpName}} http://node{1...8}.example.com/mnt/export/{1...8} 6. Start minio server with edge caching enabled. $ export MINIO_CACHE_DRIVES="/mnt/drive1;/mnt/drive2;/mnt/drive3;/mnt/drive4" @@ -173,10 +178,6 @@ func serverHandleEnvVars() { } -func init() { - logger.Init(GOPATH) -} - // serverMain handler called for 'minio server' command. func serverMain(ctx *cli.Context) { if ctx.Args().First() == "help" || !endpointsPresent(ctx) { @@ -200,8 +201,6 @@ func serverMain(ctx *cli.Context) { logger.EnableQuiet() } - logger.RegisterUIError(fmtError) - // Handle all server command args. serverHandleCmdArgs(ctx) diff --git a/cmd/update-main.go b/cmd/update-main.go index b1545752b..0a969386d 100644 --- a/cmd/update-main.go +++ b/cmd/update-main.go @@ -65,7 +65,7 @@ EXIT STATUS: EXAMPLES: 1. Check and update minio: - $ {{.HelpName}} + $ {{.HelpName}} `, } diff --git a/cmd/version-main.go b/cmd/version-main.go index 9e1b1ea71..e73aaf00b 100644 --- a/cmd/version-main.go +++ b/cmd/version-main.go @@ -36,7 +36,7 @@ FLAGS: {{end}}{{end}} EXAMPLES: 1. Prints server version: - $ {{.HelpName}} + $ {{.HelpName}} `, }