mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-12 14:30:19 -05:00
@@ -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)
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
konnectd "github.com/owncloud/ocis-konnectd/pkg/config"
|
||||
ocs "github.com/owncloud/ocis-ocs/pkg/config"
|
||||
phoenix "github.com/owncloud/ocis-phoenix/pkg/config"
|
||||
reva "github.com/owncloud/ocis-reva/pkg/config"
|
||||
webdav "github.com/owncloud/ocis-webdav/pkg/config"
|
||||
)
|
||||
|
||||
@@ -59,6 +60,7 @@ type Config struct {
|
||||
OCS *ocs.Config
|
||||
Phoenix *phoenix.Config
|
||||
WebDAV *webdav.Config
|
||||
Reva *reva.Config
|
||||
}
|
||||
|
||||
// New initializes a new configuration with or without defaults.
|
||||
@@ -70,5 +72,6 @@ func New() *Config {
|
||||
OCS: ocs.New(),
|
||||
Phoenix: phoenix.New(),
|
||||
WebDAV: webdav.New(),
|
||||
Reva: reva.New(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,6 +53,7 @@ var Extensions = []string{
|
||||
"graph",
|
||||
"ocs",
|
||||
"webdav",
|
||||
"reva",
|
||||
}
|
||||
|
||||
// Runtime is a micro' runtime
|
||||
|
||||
Reference in New Issue
Block a user