Add the ocm subcommand to ocis (#7576)

* Add the ocm subcommand to ocis

* Add changelog
This commit is contained in:
Andre Duffeck
2023-12-14 14:49:41 +01:00
committed by GitHub
parent d3f79dec0c
commit 15a7f2dea6
3 changed files with 14 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ OCIS_MODULES = \
services/nats \
services/notifications \
services/ocdav \
services/ocm \
services/ocs \
services/policies \
services/postprocessing \

View File

@@ -0,0 +1,7 @@
Enhancement: Add ocm and sciencemesh services
We added sciencemesh and ocm services to enable federation.
https://github.com/owncloud/ocis/pull/7576
https://github.com/owncloud/ocis/pull/7464
https://github.com/owncloud/ocis/pull/7463

View File

@@ -28,6 +28,7 @@ import (
nats "github.com/owncloud/ocis/v2/services/nats/pkg/command"
notifications "github.com/owncloud/ocis/v2/services/notifications/pkg/command"
ocdav "github.com/owncloud/ocis/v2/services/ocdav/pkg/command"
ocm "github.com/owncloud/ocis/v2/services/ocm/pkg/command"
ocs "github.com/owncloud/ocis/v2/services/ocs/pkg/command"
policies "github.com/owncloud/ocis/v2/services/policies/pkg/command"
postprocessing "github.com/owncloud/ocis/v2/services/postprocessing/pkg/command"
@@ -150,6 +151,11 @@ var svccmds = []register.Command{
cfg.OCDav.Commons = cfg.Commons
})
},
func(cfg *config.Config) *cli.Command {
return ServiceCommand(cfg, cfg.OCM.Service.Name, ocm.GetCommands(cfg.OCM), func(c *config.Config) {
cfg.OCM.Commons = cfg.Commons
})
},
func(cfg *config.Config) *cli.Command {
return ServiceCommand(cfg, cfg.OCS.Service.Name, ocs.GetCommands(cfg.OCS), func(c *config.Config) {
cfg.OCS.Commons = cfg.Commons