integrated micro runtime

This commit is contained in:
A.Unger
2019-12-17 10:35:33 +01:00
parent 70c496d830
commit af32874919
4 changed files with 68 additions and 25 deletions

View File

@@ -5,6 +5,7 @@ import (
"strings"
"github.com/micro/cli"
"github.com/micro/micro/api"
"github.com/owncloud/ocis-pkg/log"
"github.com/owncloud/ocis/pkg/config"
"github.com/owncloud/ocis/pkg/flagset"
@@ -80,6 +81,10 @@ func Execute() error {
},
}
// register micro runtime services.
// TODO(refs) use the registry? Some interfaces would need to be tweaked
app.Commands = append(app.Commands, api.Commands()...)
for _, fn := range register.Commands {
app.Commands = append(
app.Commands,