mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-31 01:10:20 -06:00
20 lines
392 B
Go
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
|
|
}
|