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:
@ -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{}
|
||||
|
@ -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: ¶ms.RemoteBucketID,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "remote-bucket",
|
||||
Usage: "Name of remote bucket data should be replicated to",
|
||||
Destination: ¶ms.RemoteBucketName,
|
||||
},
|
||||
&cli.Int64Flag{
|
||||
Name: "max-queue-bytes",
|
||||
Usage: "Max queue size in bytes",
|
||||
|
Reference in New Issue
Block a user