Skip to content

Commit

Permalink
ndctl, bash-completion: add completion for {start,wait}-scrub commands
Browse files Browse the repository at this point in the history
Complete the new ARS control commands with the available buses (and
'all') for non-option arguments.

Signed-off-by: Vishal Verma <[email protected]>
  • Loading branch information
stellarhopper committed Apr 17, 2018
1 parent ddd1b79 commit 2e8687b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/ndctl
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ __ndctl_comp_non_option_args()
inject-smart)
opts="$(__ndctl_get_dimms -i)"
;;
wait-scrub)
;&
start-scrub)
opts="$(__ndctl_get_buses) all"
;;
*)
return
;;
Expand Down

0 comments on commit 2e8687b

Please sign in to comment.