diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-10-25 13:55:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-11-06 08:33:46 +0000 |
commit | 1047607cbab4010ceb864c788083de82b5d8916a (patch) | |
tree | b9b479dfc9b131087f83570b2cbb8771836142a8 /share/bash-completion | |
parent | Readding -f|--force option in container stop command. (diff) | |
download | compute-tools-1047607cbab4010ceb864c788083de82b5d8916a.tar.xz compute-tools-1047607cbab4010ceb864c788083de82b5d8916a.zip |
Readding container limit command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share/bash-completion')
-rw-r--r-- | share/bash-completion/container | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container index 3bac382..a283d5f 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -82,6 +82,26 @@ _container() esac ;; + limit) + case "${cur}" in + -*) + opts="-n --name --blockio-device-weight --blockio-read-bandwith -b --blockio-weight --blockio-write-bandwith -c --cpu-quota --cpu-shares -m --memory-limit -t --tasks-max" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + + *) + case "${prev}" in + -n|--name) + opts=$(container list -a -f short) + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + esac + ;; + esac + ;; + list) case "${cur}" in -*) |