mirror of
https://github.com/minio/minio.git
synced 2025-01-25 21:53:16 -05:00
Fix tabs/indents in help message (#5962)
This commit is contained in:
parent
ac58283001
commit
71c4ff9d10
@ -33,6 +33,11 @@ import (
|
|||||||
"github.com/minio/minio/cmd/logger"
|
"github.com/minio/minio/cmd/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
logger.Init(GOPATH)
|
||||||
|
logger.RegisterUIError(fmtError)
|
||||||
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
gatewayCmd = cli.Command{
|
gatewayCmd = cli.Command{
|
||||||
Name: "gateway",
|
Name: "gateway",
|
||||||
@ -102,10 +107,6 @@ func ValidateGatewayArguments(serverAddr, endpointAddr string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
|
||||||
logger.Init(GOPATH)
|
|
||||||
}
|
|
||||||
|
|
||||||
// StartGateway - handler for 'minio gateway <name>'.
|
// StartGateway - handler for 'minio gateway <name>'.
|
||||||
func StartGateway(ctx *cli.Context, gw Gateway) {
|
func StartGateway(ctx *cli.Context, gw Gateway) {
|
||||||
if gw == nil {
|
if gw == nil {
|
||||||
|
@ -75,17 +75,14 @@ ENVIRONMENT VARIABLES:
|
|||||||
BROWSER:
|
BROWSER:
|
||||||
MINIO_BROWSER: To disable web browser access, set this value to "off".
|
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:
|
CACHE:
|
||||||
MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";".
|
MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";".
|
||||||
MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";".
|
MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";".
|
||||||
MINIO_CACHE_EXPIRY: Cache expiry duration in days.
|
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:
|
EXAMPLES:
|
||||||
1. Start minio gateway server for Azure Blob Storage backend.
|
1. Start minio gateway server for Azure Blob Storage backend.
|
||||||
$ export MINIO_ACCESS_KEY=azureaccountname
|
$ export MINIO_ACCESS_KEY=azureaccountname
|
||||||
@ -104,7 +101,6 @@ EXAMPLES:
|
|||||||
$ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png"
|
$ export MINIO_CACHE_EXCLUDE="bucket1/*;*.png"
|
||||||
$ export MINIO_CACHE_EXPIRY=40
|
$ export MINIO_CACHE_EXPIRY=40
|
||||||
$ {{.HelpName}}
|
$ {{.HelpName}}
|
||||||
|
|
||||||
`
|
`
|
||||||
|
|
||||||
minio.RegisterGatewayCommand(cli.Command{
|
minio.RegisterGatewayCommand(cli.Command{
|
||||||
|
@ -65,17 +65,14 @@ ENVIRONMENT VARIABLES:
|
|||||||
BROWSER:
|
BROWSER:
|
||||||
MINIO_BROWSER: To disable web browser access, set this value to "off".
|
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:
|
CACHE:
|
||||||
MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";".
|
MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";".
|
||||||
MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";".
|
MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";".
|
||||||
MINIO_CACHE_EXPIRY: Cache expiry duration in days.
|
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:
|
EXAMPLES:
|
||||||
1. Start minio gateway server for B2 backend.
|
1. Start minio gateway server for B2 backend.
|
||||||
$ export MINIO_ACCESS_KEY=accountID
|
$ export MINIO_ACCESS_KEY=accountID
|
||||||
|
@ -111,17 +111,14 @@ ENVIRONMENT VARIABLES:
|
|||||||
BROWSER:
|
BROWSER:
|
||||||
MINIO_BROWSER: To disable web browser access, set this value to "off".
|
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:
|
CACHE:
|
||||||
MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";".
|
MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";".
|
||||||
MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";".
|
MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";".
|
||||||
MINIO_CACHE_EXPIRY: Cache expiry duration in days.
|
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:
|
GCS credentials file:
|
||||||
GOOGLE_APPLICATION_CREDENTIALS: Path to credentials.json
|
GOOGLE_APPLICATION_CREDENTIALS: Path to credentials.json
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ FLAGS:
|
|||||||
{{range .VisibleFlags}}{{.}}
|
{{range .VisibleFlags}}{{.}}
|
||||||
{{end}}{{end}}
|
{{end}}{{end}}
|
||||||
PATH:
|
PATH:
|
||||||
path to NAS mount point.
|
Path to NAS mount point.
|
||||||
|
|
||||||
ENVIRONMENT VARIABLES:
|
ENVIRONMENT VARIABLES:
|
||||||
ACCESS:
|
ACCESS:
|
||||||
@ -50,17 +50,14 @@ ENVIRONMENT VARIABLES:
|
|||||||
BROWSER:
|
BROWSER:
|
||||||
MINIO_BROWSER: To disable web browser access, set this value to "off".
|
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:
|
CACHE:
|
||||||
MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";".
|
MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";".
|
||||||
MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";".
|
MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";".
|
||||||
MINIO_CACHE_EXPIRY: Cache expiry duration in days.
|
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:
|
EXAMPLES:
|
||||||
1. Start minio gateway server for NAS backend.
|
1. Start minio gateway server for NAS backend.
|
||||||
$ export MINIO_ACCESS_KEY=accesskey
|
$ export MINIO_ACCESS_KEY=accesskey
|
||||||
|
@ -67,9 +67,6 @@ ENVIRONMENT VARIABLES:
|
|||||||
BROWSER:
|
BROWSER:
|
||||||
MINIO_BROWSER: To disable web browser access, set this value to "off".
|
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:
|
DOMAIN:
|
||||||
MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name.
|
MINIO_DOMAIN: To enable virtual-host-style requests, set this value to Minio host domain name.
|
||||||
|
|
||||||
|
@ -58,17 +58,14 @@ ENVIRONMENT VARIABLES:
|
|||||||
BROWSER:
|
BROWSER:
|
||||||
MINIO_BROWSER: To disable web browser access, set this value to "off".
|
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:
|
CACHE:
|
||||||
MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";".
|
MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";".
|
||||||
MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";".
|
MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";".
|
||||||
MINIO_CACHE_EXPIRY: Cache expiry duration in days.
|
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:
|
EXAMPLES:
|
||||||
1. Start minio gateway server for AWS S3 backend.
|
1. Start minio gateway server for AWS S3 backend.
|
||||||
$ export MINIO_ACCESS_KEY=accesskey
|
$ export MINIO_ACCESS_KEY=accesskey
|
||||||
|
@ -72,17 +72,14 @@ ENVIRONMENT VARIABLES: (Default values in parenthesis)
|
|||||||
BROWSER:
|
BROWSER:
|
||||||
MINIO_BROWSER: To disable web browser access, set this value to "off".
|
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:
|
CACHE:
|
||||||
MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";".
|
MINIO_CACHE_DRIVES: List of mounted drives or directories delimited by ";".
|
||||||
MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";".
|
MINIO_CACHE_EXCLUDE: List of cache exclusion patterns delimited by ";".
|
||||||
MINIO_CACHE_EXPIRY: Cache expiry duration in days.
|
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_TEMP_DIR: The name of the local Sia temporary storage directory. (.sia_temp)
|
||||||
SIA_API_PASSWORD: API password for Sia daemon. (default is empty)
|
SIA_API_PASSWORD: API password for Sia daemon. (default is empty)
|
||||||
|
|
||||||
|
@ -31,6 +31,11 @@ import (
|
|||||||
"github.com/minio/minio/cmd/logger"
|
"github.com/minio/minio/cmd/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
logger.Init(GOPATH)
|
||||||
|
logger.RegisterUIError(fmtError)
|
||||||
|
}
|
||||||
|
|
||||||
var serverFlags = []cli.Flag{
|
var serverFlags = []cli.Flag{
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "address",
|
Name: "address",
|
||||||
@ -173,10 +178,6 @@ func serverHandleEnvVars() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
|
||||||
logger.Init(GOPATH)
|
|
||||||
}
|
|
||||||
|
|
||||||
// serverMain handler called for 'minio server' command.
|
// serverMain handler called for 'minio server' command.
|
||||||
func serverMain(ctx *cli.Context) {
|
func serverMain(ctx *cli.Context) {
|
||||||
if ctx.Args().First() == "help" || !endpointsPresent(ctx) {
|
if ctx.Args().First() == "help" || !endpointsPresent(ctx) {
|
||||||
@ -200,8 +201,6 @@ func serverMain(ctx *cli.Context) {
|
|||||||
logger.EnableQuiet()
|
logger.EnableQuiet()
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.RegisterUIError(fmtError)
|
|
||||||
|
|
||||||
// Handle all server command args.
|
// Handle all server command args.
|
||||||
serverHandleCmdArgs(ctx)
|
serverHandleCmdArgs(ctx)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user