Files
opencloud/pkg/runtime/command.go
2020-06-04 11:45:19 +02:00

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