Skip to content

Commit b2a194f

Browse files
committed
Updating bash completion for ps command
Signed-off-by: rajasec <[email protected]>
1 parent 850b9c0 commit b2a194f

File tree

1 file changed

+17
-0
lines changed
  • contrib/completions/bash

1 file changed

+17
-0
lines changed

contrib/completions/bash/runc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,22 @@ _runc_pause() {
289289
esac
290290
}
291291

292+
_runc_ps() {
293+
local boolean_options="
294+
--help
295+
-h
296+
"
297+
298+
case "$cur" in
299+
-*)
300+
COMPREPLY=( $( compgen -W "$boolean_options $options_with_args" -- "$cur" ) )
301+
;;
302+
*)
303+
__runc_list_all
304+
;;
305+
esac
306+
}
307+
292308
_runc_delete() {
293309
local boolean_options="
294310
--help
@@ -744,6 +760,7 @@ _runc() {
744760
kill
745761
list
746762
pause
763+
ps
747764
restore
748765
resume
749766
run

0 commit comments

Comments
 (0)