Configure bash completion

Add bash completion rules to the /etc/bash_completion.d from the
 cinder, neutron, keystone, nova and nova-manage.

This is very fast operation and makes the cli usage easier.

Change-Id: Icdcdaf55d58efaaa1afe25fd55f088bf7dc8b3f1
This commit is contained in:
Attila Fazekas 2013-08-14 16:04:01 +02:00
parent 68044c0245
commit fac533e38d
4 changed files with 5 additions and 0 deletions

View File

@ -468,6 +468,7 @@ function install_cinder() {
function install_cinderclient() { function install_cinderclient() {
git_clone $CINDERCLIENT_REPO $CINDERCLIENT_DIR $CINDERCLIENT_BRANCH git_clone $CINDERCLIENT_REPO $CINDERCLIENT_DIR $CINDERCLIENT_BRANCH
setup_develop $CINDERCLIENT_DIR setup_develop $CINDERCLIENT_DIR
sudo install -D -m 0644 -o $STACK_USER {$CINDERCLIENT_DIR/tools/,/etc/bash_completion.d/}cinder.bash_completion
} }
# apply config.d approach for cinder volumes directory # apply config.d approach for cinder volumes directory

View File

@ -289,6 +289,7 @@ function init_keystone() {
function install_keystoneclient() { function install_keystoneclient() {
git_clone $KEYSTONECLIENT_REPO $KEYSTONECLIENT_DIR $KEYSTONECLIENT_BRANCH git_clone $KEYSTONECLIENT_REPO $KEYSTONECLIENT_DIR $KEYSTONECLIENT_BRANCH
setup_develop $KEYSTONECLIENT_DIR setup_develop $KEYSTONECLIENT_DIR
sudo install -D -m 0644 -o $STACK_USER {$KEYSTONECLIENT_DIR/tools/,/etc/bash_completion.d/}keystone.bash_completion
} }
# install_keystone() - Collect source and prepare # install_keystone() - Collect source and prepare

View File

@ -382,6 +382,7 @@ function install_neutron() {
function install_neutronclient() { function install_neutronclient() {
git_clone $NEUTRONCLIENT_REPO $NEUTRONCLIENT_DIR $NEUTRONCLIENT_BRANCH git_clone $NEUTRONCLIENT_REPO $NEUTRONCLIENT_DIR $NEUTRONCLIENT_BRANCH
setup_develop $NEUTRONCLIENT_DIR setup_develop $NEUTRONCLIENT_DIR
sudo install -D -m 0644 -o $STACK_USER {$NEUTRONCLIENT_DIR/tools/,/etc/bash_completion.d/}neutron.bash_completion
} }
# install_neutron_agent_packages() - Collect source and prepare # install_neutron_agent_packages() - Collect source and prepare

View File

@ -645,6 +645,7 @@ function init_nova() {
function install_novaclient() { function install_novaclient() {
git_clone $NOVACLIENT_REPO $NOVACLIENT_DIR $NOVACLIENT_BRANCH git_clone $NOVACLIENT_REPO $NOVACLIENT_DIR $NOVACLIENT_BRANCH
setup_develop $NOVACLIENT_DIR setup_develop $NOVACLIENT_DIR
sudo install -D -m 0644 -o $STACK_USER {$NOVACLIENT_DIR/tools/,/etc/bash_completion.d/}nova.bash_completion
} }
# install_nova() - Collect source and prepare # install_nova() - Collect source and prepare
@ -682,6 +683,7 @@ function install_nova() {
git_clone $NOVA_REPO $NOVA_DIR $NOVA_BRANCH git_clone $NOVA_REPO $NOVA_DIR $NOVA_BRANCH
setup_develop $NOVA_DIR setup_develop $NOVA_DIR
sudo install -D -m 0644 -o $STACK_USER {$NOVA_DIR/tools/,/etc/bash_completion.d/}nova-manage.bash_completion
} }
# start_nova_api() - Start the API process ahead of other things # start_nova_api() - Start the API process ahead of other things