mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-23 22:59:10 -04:00
updgrade the micro/cli dependency
This commit is contained in:
1 parent
64dd8a8b17
commit
11816f75ab
29 files changed
+488
-439
No files matched your search
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/cs3org/reva/cmd/revad/runtime"
|
||||
"github.com/gofrs/uuid"
|
||||
"github.com/micro/cli"
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/oklog/run"
|
||||
"github.com/owncloud/ocis-reva/pkg/config"
|
||||
"github.com/owncloud/ocis-reva/pkg/flagset"
|
||||
@@ -17,11 +17,16 @@ import (
|
||||
)
|
||||
|
||||
// AuthBasic is the entrypoint for the auth-basic command.
|
||||
func AuthBasic(cfg *config.Config) cli.Command {
|
||||
return cli.Command{
|
||||
func AuthBasic(cfg *config.Config) *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: "auth-basic",
|
||||
Usage: "Start reva authprovider for basic auth",
|
||||
Flags: flagset.AuthBasicWithConfig(cfg),
|
||||
Before: func(c *cli.Context) error {
|
||||
cfg.Reva.AuthBasic.Services = c.StringSlice("service")
|
||||
|
||||
return nil
|
||||
},
|
||||
Action: func(c *cli.Context) error {
|
||||
logger := NewLogger(cfg)
|
||||
|
||||
|
||||
Reference in new issue
Block a user