Merge pull request #17057 from mavenugo/nls

Added `network` to docker --help and help cleanup
This commit is contained in:
David Calavera 2015-10-15 11:00:43 -07:00
Родитель add0d25029 46f7ab3585
Коммит f255155f6b
3 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -45,6 +45,7 @@ var dockerCommands = []Command{
{"login", "Register or log in to a Docker registry"}, {"login", "Register or log in to a Docker registry"},
{"logout", "Log out from a Docker registry"}, {"logout", "Log out from a Docker registry"},
{"logs", "Fetch the logs of a container"}, {"logs", "Fetch the logs of a container"},
{"network", "Manage Docker networks"},
{"pause", "Pause all processes within a container"}, {"pause", "Pause all processes within a container"},
{"port", "List port mappings or a specific mapping for the CONTAINER"}, {"port", "List port mappings or a specific mapping for the CONTAINER"},
{"ps", "List containers"}, {"ps", "List containers"},

Просмотреть файл

@ -1060,7 +1060,7 @@ _docker_network_ls() {
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=( $( compgen -W "--help --latest -l -n --no-trunc --quiet -q" -- "$cur" ) ) COMPREPLY=( $( compgen -W "--help --no-trunc --quiet -q" -- "$cur" ) )
;; ;;
esac esac
} }

Просмотреть файл

@ -14,8 +14,6 @@ parent = "smn_cli"
Lists all the networks created by the user Lists all the networks created by the user
--help=false Print usage --help=false Print usage
-l, --latest=false Show the latest network created
-n=-1 Show n last created networks
--no-trunc=false Do not truncate the output --no-trunc=false Do not truncate the output
-q, --quiet=false Only display numeric IDs -q, --quiet=false Only display numeric IDs