mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
init InspectService method
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"uncloud/internal/cli"
|
||||
"uncloud/internal/cli/client"
|
||||
"uncloud/internal/docker"
|
||||
"uncloud/internal/service"
|
||||
)
|
||||
|
||||
func NewRunCommand() *cobra.Command {
|
||||
@@ -32,10 +32,10 @@ func NewRunCommand() *cobra.Command {
|
||||
&opts.Machine, "machine", "m", "",
|
||||
"Name or ID of the machine to run the service on. (default is first available)",
|
||||
)
|
||||
cmd.Flags().StringVar(&opts.Mode, "mode", docker.DeployModeReplicated,
|
||||
cmd.Flags().StringVar(&opts.Mode, "mode", service.ModeReplicated,
|
||||
fmt.Sprintf("Replication mode of the service: either %q (a specified number of containers across "+
|
||||
"the machines) or %q (one container on every machine).",
|
||||
docker.DeployModeReplicated, docker.DeployModeGlobal))
|
||||
service.ModeReplicated, service.ModeGlobal))
|
||||
cmd.Flags().StringSliceVarP(&opts.Publish, "publish", "p", nil,
|
||||
"Publish a service port to make it accessible outside the cluster. Can be specified multiple times. "+
|
||||
"Format: [load_balancer_port:]container_port[/protocol]")
|
||||
|
||||
Reference in New Issue
Block a user