The default output for Cobra aliases only shows the subcommand as alias, which
is not very intuitive. This patch changes the output to print the full command
as it would be called by the user.
Note that there's still some improvements to be made; due to how aliases must be
set-up in Cobra, aliases at different "levels" are still not shown. So for example,
`docker ps --help` will not show `docker container ps` as alias, and vice-versa.
This will require additional changes, and can possibly be resolved using custom
metadata/annotations.
Before this patch:
docker container ls --help
Usage: docker container ls [OPTIONS]
List containers
Aliases:
ls, ps, list
After this patch:
docker container ls --help
Usage: docker container ls [OPTIONS]
List containers
Aliases:
docker container ls, docker container ps, docker container list
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
18 lines
663 B
Plaintext
18 lines
663 B
Plaintext
|
|
Usage: docker stack deploy [OPTIONS] STACK
|
|
|
|
Deploy a new stack or update an existing stack
|
|
|
|
Aliases:
|
|
docker stack deploy, docker stack up
|
|
|
|
Options:
|
|
-c, --compose-file strings Path to a Compose file, or "-" to read
|
|
from stdin
|
|
--prune Prune services that are no longer referenced
|
|
--resolve-image string Query the registry to resolve image digest
|
|
and supported platforms
|
|
("always"|"changed"|"never") (default "always")
|
|
--with-registry-auth Send registry authentication details to
|
|
Swarm agents
|