Files
ocis/pkg/runtime/command.go
T

19 lines
392 B
Go
Raw Normal View History

2019-12-17 14:32:58 +01:00
package runtime
import (
2020-02-10 17:04:40 +01:00
"github.com/micro/cli/v2"
2019-12-17 14:32:58 +01:00
)
// Command adds micro runtime commands to the cli app
2020-02-10 17:04:40 +01:00
func Command(app *cli.App) *cli.Command {
2019-12-17 14:32:58 +01:00
command := cli.Command{
Name: "micro",
Description: "starts the go-micro runtime services",
Category: "Micro",
2019-12-17 14:32:58 +01:00
Action: func(c *cli.Context) error {
2020-05-20 20:58:14 +02:00
runtime := New()
2020-05-22 13:45:17 +02:00
return runtime.Start()
2019-12-17 14:32:58 +01:00
},
}
2020-02-10 17:04:40 +01:00
return &command
2019-12-17 14:32:58 +01:00
}