Files
QSfera/pkg/command/reva.go
T
Jörn Friedrich Dreyer ab1f1a6dbc Reva based simple ocis
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-01-13 16:48:28 +01:00

32 lines
685 B
Go

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 {
scfg := configureReva(cfg)
return cli.HandleAction(
command.Server(scfg).Action,
c,
)
},
}
}
func init() {
register.AddCommand(RevaCommand)
}