working runtime

This commit is contained in:
A.Unger
2020-05-20 20:58:14 +02:00
parent 9b779aabf8
commit b2cece2de8
6 changed files with 251 additions and 221 deletions
+1 -8
View File
@@ -2,8 +2,6 @@ package runtime
import (
"github.com/micro/cli/v2"
"github.com/micro/go-micro/v2/config/cmd"
"github.com/owncloud/ocis-pkg/v2/log"
)
// Command adds micro runtime commands to the cli app
@@ -13,12 +11,7 @@ func Command(app *cli.App) *cli.Command {
Description: "starts the go-micro runtime services",
Category: "Micro",
Action: func(c *cli.Context) error {
runtime := New(
Services(MicroServices),
Logger(log.NewLogger()),
MicroRuntime(cmd.DefaultCmd.Options().Runtime),
)
runtime := New()
runtime.Start()
return nil