Files
opencloud/pkg/micro/runtime/command.go
2020-05-20 20:58:14 +02:00

22 lines
400 B
Go

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()
runtime.Start()
return nil
},
}
return &command
}