]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
bash_completion: Do not auto complete obsolete and hidden cmds
authorKotresh HR <khiremat@redhat.com>
Sat, 18 Apr 2020 18:33:37 +0000 (00:03 +0530)
committerKotresh HR <khiremat@redhat.com>
Fri, 24 Apr 2020 09:42:53 +0000 (15:12 +0530)
commit41082930f33fa43391986ac05394dbfff3b5dfd7
tree8c807a789db05a4956f3f3db875543fc52faa072
parentc4a0acd91d4c1feae9984dc26ba74b7d89aa845e
bash_completion: Do not auto complete obsolete and hidden cmds

This patch fixes two things.

1. Do not auto complete obsolete and hidden cmds.
2. sub command completions often failed due to the
   use of associative arrays which does not keep the
   order. Hence used non-associative arrays.

Fixes: https://tracker.ceph.com/issues/45141
Signed-off-by: Kotresh HR <khiremat@redhat.com>
src/bash_completion/ceph
src/ceph.in