add ocis-reva

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2019-12-18 16:11:15 +01:00
parent 5d7da45d3f
commit 4f860675bc
5 changed files with 132 additions and 19 deletions

29
pkg/command/reva.go Normal file
View File

@@ -0,0 +1,29 @@
package command
import (
"github.com/micro/cli"
"github.com/owncloud/ocis-reva/pkg/command"
"github.com/owncloud/ocis-reva/pkg/flagset"
"github.com/owncloud/ocis/pkg/config"
"github.com/owncloud/ocis/pkg/register"
)
// RevaCommand is the entrypoint for the konnectd command.
func RevaCommand(cfg *config.Config) cli.Command {
return cli.Command{
Name: "reva",
Usage: "Start reva server",
Category: "Extensions",
Flags: flagset.ServerWithConfig(cfg.Reva),
Action: func(c *cli.Context) error {
return cli.HandleAction(
command.Server(cfg.Reva).Action,
c,
)
},
}
}
func init() {
register.AddCommand(RevaCommand)
}