mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
22 lines
359 B
Go
22 lines
359 B
Go
package service
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewRootCommand() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "service",
|
|
Aliases: []string{"svc"},
|
|
Short: "Manage services in an Uncloud cluster.",
|
|
}
|
|
cmd.AddCommand(
|
|
NewInspectCommand(),
|
|
NewListCommand(),
|
|
NewRmCommand(),
|
|
NewRunCommand(),
|
|
NewScaleCommand(),
|
|
)
|
|
return cmd
|
|
}
|