mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-01 18:01:28 -06:00
22 lines
400 B
Go
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
|
|
}
|