feat: replication bucket name (#440)

* chore: gofmt

* chore: update openapi gen files

* feat: add replication-bucket-name flag

* fix: fix tests

* chore: rename to replication-bucket

* feat: show remote bucket name or id

* chore: fmt fixup

* chore: update openapi to master

* chore: fix openapi generation
This commit is contained in:
Jeffrey Smith II
2022-08-18 14:21:50 -04:00
committed by GitHub
parent 051a6aafc4
commit 5c7c34f16d
22 changed files with 420 additions and 218 deletions

View File

@ -96,7 +96,7 @@ func newApp() cli.App {
// This creates a new slice and replaces `-t "-FOO-TOKEN"` with `-t=-FOO-TOKEN`
// This is necessary to do because the command line arg:
// `-t "-FOO-TOKEN"`` will be parsed as two separate flags instead of a flag and token value.
// `-t "-FOO-TOKEN" will be parsed as two separate flags instead of a flag and token value.
func ReplaceTokenArg(args []string) []string {
if len(args) == 0 {
return []string{}

View File

@ -66,9 +66,13 @@ func newReplicationCreateCmd() cli.Command {
&cli.StringFlag{
Name: "remote-bucket-id",
Usage: "ID of remote bucket data should be replicated to",
Required: true,
Destination: &params.RemoteBucketID,
},
&cli.StringFlag{
Name: "remote-bucket",
Usage: "Name of remote bucket data should be replicated to",
Destination: &params.RemoteBucketName,
},
&cli.Int64Flag{
Name: "max-queue-bytes",
Usage: "Max queue size in bytes",