add default gateway flag to storage commands

This commit is contained in:
A.Unger
2021-10-05 09:23:53 +02:00
parent e4bb5b8bef
commit 74ad0b8c1d
14 changed files with 56 additions and 24 deletions
+10
View File
@@ -21,6 +21,16 @@ func SharingWithConfig(cfg *config.Config) []cli.Flag {
// Services
// Gateway
&cli.StringFlag{
Name: "gateway-url",
Value: flags.OverrideDefaultString(cfg.Reva.Gateway.Endpoint, "localhost:9142"),
Usage: "URL to use for the storage gateway service",
EnvVars: []string{"STORAGE_GATEWAY_ENDPOINT"},
Destination: &cfg.Reva.Gateway.Endpoint,
},
// Sharing
&cli.StringFlag{