restructure runtime code

This commit is contained in:
A.Unger
2020-06-04 11:45:19 +02:00
parent c7310ae232
commit c61bbd7783
6 changed files with 179 additions and 13 deletions
+19
View File
@@ -0,0 +1,19 @@
package runtime
import (
"github.com/micro/cli/v2"
)
// Command adds micro runtime commands to the cli app
func Command(app *cli.App) *cli.Command {
command := cli.Command{
Name: "micro",
Description: "starts the go-micro runtime services",
Category: "Micro",
Action: func(c *cli.Context) error {
runtime := New()
return runtime.Start()
},
}
return &command
}