mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
26 lines
451 B
Go
26 lines
451 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 the cluster.",
|
|
}
|
|
cmd.AddCommand(
|
|
NewExecCommand(""),
|
|
NewInspectCommand(""),
|
|
NewListCommand(""),
|
|
NewLogsCommand(""),
|
|
NewRmCommand(""),
|
|
NewRunCommand(""),
|
|
NewScaleCommand(""),
|
|
NewStartCommand(""),
|
|
NewStopCommand(""),
|
|
)
|
|
return cmd
|
|
}
|