fix: indent help properly (#3504)
This commit is contained in:
@@ -87,22 +87,18 @@ FLAGS:
|
||||
{{end}}
|
||||
EXAMPLES:
|
||||
1. Set a new remote replication target "targetbucket" in region "us-west-1" on https://minio.siteb.example.com for bucket 'sourcebucket'.
|
||||
{{.Prompt}} {{.HelpName}} sitea/sourcebucket \
|
||||
https://foobar:foo12345@minio.siteb.example.com/targetbucket \
|
||||
--service "replication" --region "us-west-1" --label "hdd-tier"
|
||||
{{.Prompt}} {{.HelpName}} sitea/sourcebucket https://foobar:foo12345@minio.siteb.example.com/targetbucket \
|
||||
--service "replication" --region "us-west-1" --label "hdd-tier"
|
||||
|
||||
2. Set a new remote replication target 'targetbucket' in region "us-west-1" on https://minio.siteb.example.com for bucket 'sourcebucket' with bandwidth set to 2 gigabits (2*10^9) per second.
|
||||
{{.Prompt}} {{.HelpName}} sitea/sourcebucket \
|
||||
https://foobar:foo12345@minio.siteb.example.com/targetbucket \
|
||||
--service "replication" --region "us-west-1 --bandwidth "2G"
|
||||
2. Set a new remote replication target 'targetbucket' in region "us-west-1" on https://minio.siteb.example.com for
|
||||
bucket 'sourcebucket' with bandwidth set to 2 gigabits (2*10^9) per second.
|
||||
{{.Prompt}} {{.HelpName}} sitea/sourcebucket https://foobar:foo12345@minio.siteb.example.com/targetbucket \
|
||||
--service "replication" --region "us-west-1 --bandwidth "2G"
|
||||
|
||||
3. Set a new remote transition target 'srcbucket' in region "us-west-1" on https://minio2:9000 for bucket 'srcbucket' on MinIO server.
|
||||
{{.DisableHistory}}
|
||||
{{.Prompt}} {{.HelpName}} myminio/srcbucket \
|
||||
https://foobar:foo12345@minio2:9000/srcbucket \
|
||||
--service "ilm" --region "us-west-1" --label "hdd-tier"
|
||||
{{.EnableHistory}}
|
||||
|
||||
{{.DisableHistory}}
|
||||
{{.Prompt}} {{.HelpName}} myminio/srcbucket https://foobar:foo12345@minio2:9000/srcbucket --service "ilm" --region "us-west-1" --label "hdd-tier"
|
||||
{{.EnableHistory}}
|
||||
`,
|
||||
}
|
||||
|
||||
|
||||
+23
-24
@@ -72,31 +72,30 @@ var replicateAddCmd = cli.Command{
|
||||
Before: setGlobalsFromContext,
|
||||
Flags: append(globalFlags, replicateAddFlags...),
|
||||
CustomHelpTemplate: `NAME:
|
||||
{{.HelpName}} - {{.Usage}}
|
||||
|
||||
USAGE:
|
||||
{{.HelpName}} TARGET
|
||||
|
||||
FLAGS:
|
||||
{{range .VisibleFlags}}{{.}}
|
||||
{{end}}
|
||||
EXAMPLES:
|
||||
1. Add replication configuration rule on bucket "mybucket" for alias "myminio" to replicate
|
||||
all objects with tags key1=value1, key2=value2 to destbucket, including delete markers and
|
||||
versioned deletes.
|
||||
{{.Prompt}} {{.HelpName}} myminio/mybucket/prefix --tags "key1=value1&key2=value2" \
|
||||
--storage-class "STANDARD" \
|
||||
--arn 'arn:minio:replication::c5be6b16-769d-432a-9ef1-4567081f3566:destbucket' \
|
||||
--priority 1 \
|
||||
--remote-bucket "destbucket"
|
||||
--replicate "delete,delete-marker"
|
||||
{{.HelpName}} - {{.Usage}}
|
||||
|
||||
2. Add replication configuration rule with Disabled status on bucket "mybucket" for alias "myminio".
|
||||
{{.Prompt}} {{.HelpName}} myminio/mybucket/prefix --tags "key1=value1&key2=value2" \
|
||||
--storage-class "STANDARD" --disable \
|
||||
--arn 'arn:minio:replica::c5be6b16-769d-432a-9ef1-4567081f3566:destbucket' \
|
||||
--priority 1 \
|
||||
--remote-bucket "destbucket"
|
||||
USAGE:
|
||||
{{.HelpName}} TARGET
|
||||
|
||||
FLAGS:
|
||||
{{range .VisibleFlags}}{{.}}
|
||||
{{end}}
|
||||
EXAMPLES:
|
||||
1. Add replication configuration rule on bucket "mybucket" for alias "myminio" to replicate all objects with tags
|
||||
"key1=value1, key2=value2" to destbucket, including delete markers and versioned deletes.
|
||||
{{.Prompt}} {{.HelpName}} myminio/mybucket/prefix --tags "key1=value1&key2=value2" \
|
||||
--storage-class "STANDARD" \
|
||||
--arn 'arn:minio:replication::c5be6b16-769d-432a-9ef1-4567081f3566:destbucket' \
|
||||
--priority 1 \
|
||||
--remote-bucket "destbucket"
|
||||
--replicate "delete,delete-marker"
|
||||
|
||||
2. Add replication configuration rule with Disabled status on bucket "mybucket" for alias "myminio".
|
||||
{{.Prompt}} {{.HelpName}} myminio/mybucket/prefix --tags "key1=value1&key2=value2" \
|
||||
--storage-class "STANDARD" --disable \
|
||||
--arn 'arn:minio:replica::c5be6b16-769d-432a-9ef1-4567081f3566:destbucket' \
|
||||
--priority 1 \
|
||||
--remote-bucket "destbucket"
|
||||
`,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user