mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
chore: update --container flag help that accepts ID prefix
This commit is contained in:
@@ -74,7 +74,8 @@ If the service has multiple replicas and no container ID is specified, the comma
|
|||||||
|
|
||||||
// Common flags
|
// Common flags
|
||||||
execCmd.Flags().StringVar(&opts.containerId, "container", "",
|
execCmd.Flags().StringVar(&opts.containerId, "container", "",
|
||||||
"ID of the container to exec into (default is the random container of the service)")
|
"ID of the container to exec into. Accepts full ID or a unique prefix "+
|
||||||
|
"(default is the random container of the service)")
|
||||||
|
|
||||||
// This tells Cobra that all flags must come before positional arguments, so that
|
// This tells Cobra that all flags must come before positional arguments, so that
|
||||||
// commands with their own flags can be handled correctly.
|
// commands with their own flags can be handled correctly.
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ uc exec [OPTIONS] SERVICE [COMMAND ARGS...] [flags]
|
|||||||
## Options
|
## Options
|
||||||
|
|
||||||
```
|
```
|
||||||
--container string ID of the container to exec into (default is the random container of the service)
|
--container string ID of the container to exec into. Accepts full ID or a unique prefix (default is the random container of the service)
|
||||||
-c, --context string Name of the cluster context. (default is the current context)
|
-c, --context string Name of the cluster context. (default is the current context)
|
||||||
-d, --detach Detached mode: run command in the background
|
-d, --detach Detached mode: run command in the background
|
||||||
-h, --help help for exec
|
-h, --help help for exec
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ uc service exec [OPTIONS] SERVICE [COMMAND ARGS...] [flags]
|
|||||||
## Options
|
## Options
|
||||||
|
|
||||||
```
|
```
|
||||||
--container string ID of the container to exec into (default is the random container of the service)
|
--container string ID of the container to exec into. Accepts full ID or a unique prefix (default is the random container of the service)
|
||||||
-c, --context string Name of the cluster context. (default is the current context)
|
-c, --context string Name of the cluster context. (default is the current context)
|
||||||
-d, --detach Detached mode: run command in the background
|
-d, --detach Detached mode: run command in the background
|
||||||
-h, --help help for exec
|
-h, --help help for exec
|
||||||
|
|||||||
Reference in New Issue
Block a user