From b2a194f2264eb26bcd801a2c58ea28876485f31c Mon Sep 17 00:00:00 2001 From: rajasec Date: Sat, 22 Oct 2016 21:51:21 +0530 Subject: [PATCH] Updating bash completion for ps command Signed-off-by: rajasec --- contrib/completions/bash/runc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/contrib/completions/bash/runc b/contrib/completions/bash/runc index f19adf1f..efbcae52 100644 --- a/contrib/completions/bash/runc +++ b/contrib/completions/bash/runc @@ -289,6 +289,22 @@ _runc_pause() { esac } +_runc_ps() { + local boolean_options=" + --help + -h + " + + case "$cur" in + -*) + COMPREPLY=( $( compgen -W "$boolean_options $options_with_args" -- "$cur" ) ) + ;; + *) + __runc_list_all + ;; + esac +} + _runc_delete() { local boolean_options=" --help @@ -744,6 +760,7 @@ _runc() { kill list pause + ps restore resume run