+1
-1
@@ -2,7 +2,7 @@ SHELL := bash
|
||||
NAME := storage
|
||||
|
||||
############ tooling ############
|
||||
ifneq (, $(shell which go 2> /dev/null)) # supress `command not found warnings` for non go targets in CI
|
||||
ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI
|
||||
include ../.bingo/Variables.mk
|
||||
endif
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ func Frontend(cfg *config.Config) *cli.Command {
|
||||
Flags: flagset.FrontendWithConfig(cfg),
|
||||
Before: func(c *cli.Context) error {
|
||||
cfg.Reva.Frontend.Services = c.StringSlice("service")
|
||||
cfg.Reva.ChecksumSupportedTypes = c.StringSlice("checksum-suppored-type")
|
||||
cfg.Reva.ChecksumSupportedTypes = c.StringSlice("checksum-supported-type")
|
||||
return loadUserAgent(c, cfg)
|
||||
},
|
||||
Action: func(c *cli.Context) error {
|
||||
|
||||
@@ -180,9 +180,9 @@ func FrontendWithConfig(cfg *config.Config) []cli.Flag {
|
||||
Destination: &cfg.Reva.UploadHTTPMethodOverride,
|
||||
},
|
||||
&cli.StringSliceFlag{
|
||||
Name: "checksum-suppored-type",
|
||||
Name: "checksum-supported-type",
|
||||
Value: cli.NewStringSlice("sha1", "md5", "adler32"),
|
||||
Usage: "--checksum-suppored-type sha1 [--checksum-suppored-type adler32]",
|
||||
Usage: "--checksum-supported-type sha1 [--checksum-supported-type adler32]",
|
||||
EnvVars: []string{"STORAGE_FRONTEND_CHECKSUM_SUPPORTED_TYPES"},
|
||||
},
|
||||
&cli.StringFlag{
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"github.com/owncloud/ocis/storage/pkg/config"
|
||||
)
|
||||
|
||||
// SharingSQLWithConfig applies the Shring SQL driver cfg to the flagset
|
||||
// SharingSQLWithConfig applies the Sharing SQL driver cfg to the flagset
|
||||
func SharingSQLWithConfig(cfg *config.Config) []cli.Flag {
|
||||
return []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
|
||||
@@ -58,9 +58,9 @@ If you prefer to configure the service with environment variables you can see th
|
||||
|
||||
If multiple variables are listed for one option, they are in order of precedence. This means the leftmost variable will always win if given.
|
||||
|
||||
### Commandline flags
|
||||
### Command-line flags
|
||||
|
||||
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||
If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
|
||||
|
||||
{{ $options := .Options -}}
|
||||
{{ range $com := .Commands }}{{ with (list $options $com) -}}
|
||||
|
||||
Reference in New Issue
Block a user