From 95c4efb63cb73f5b09cca2d4c8e031af4544e170 Mon Sep 17 00:00:00 2001 From: Ace-Tang Date: Sat, 15 Sep 2018 23:00:12 +0800 Subject: [PATCH] bash_completion: add events command add pouch events command completion. Signed-off-by: Ace-Tang --- contrib/completion/bash/pouch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/contrib/completion/bash/pouch b/contrib/completion/bash/pouch index 1ac3b2777..6e7ce696b 100644 --- a/contrib/completion/bash/pouch +++ b/contrib/completion/bash/pouch @@ -996,6 +996,15 @@ _pouch_container_remount_lxcfs() { return 0 } +_pouch_container_events() { + case "$cur" in + -*) + COMPREPLY=( $( compgen -W "--help -h --filter -f --since -s --until -u" -- "$cur" ) ) + ;; + esac + return 0 +} + _pouch_daemon() { local options_with_args=" --add-runtime @@ -1438,6 +1447,10 @@ _pouch_remount_lxcfs() { _pouch_container_remount_lxcfs } +_pouch_events() { + _pouch_container_events +} + _pouch_version() { case "$cur" in -*) @@ -1559,6 +1572,7 @@ _pouch() { volume wait checkpoint + events ) local global_options="