]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
bash_completion: Do not auto complete obsolete and hidden cmds 35117/head
authorKotresh HR <khiremat@redhat.com>
Sat, 18 Apr 2020 18:33:37 +0000 (00:03 +0530)
committerVicente Cheng <freeze.bilsted@gmail.com>
Tue, 19 May 2020 06:08:34 +0000 (06:08 +0000)
commit8ef4532d76869f401bedda60fbb76eff959b9241
tree5a3a32f25edab502211dfeeb5f129b73b0e56815
parentf6f53f176ebc3d68853d3e6474d0490b27b4dacb
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>
(cherry picked from commit 41082930f33fa43391986ac05394dbfff3b5dfd7)
src/bash_completion/ceph
src/ceph.in