Add support for auto-completion
Generate completer script for the 'openstack' command. Change-Id: I2fe65f067749936e971c9eb5cc7bcff7438def9e
This commit is contained in:
parent
9c35af5193
commit
f71b90d507
|
@ -19,6 +19,7 @@ base: core18
|
|||
apps:
|
||||
openstack:
|
||||
command: bin/openstack
|
||||
completer: usr/share/bash-completion/completions/openstack
|
||||
glance:
|
||||
command: bin/glance
|
||||
gnocchi:
|
||||
|
@ -118,3 +119,7 @@ parts:
|
|||
sed -i usr/lib/python3.6/site.py -e 's/^ENABLE_USER_SITE = None$/ENABLE_USER_SITE = False/'
|
||||
# This is the last step, let's now compile all our pyc files.
|
||||
./usr/bin/python3 -m compileall .
|
||||
# Generate completer script snippets
|
||||
mkdir -p usr/share/bash-completion/completions
|
||||
./bin/openstack complete > usr/share/bash-completion/completions/openstack
|
||||
echo "complete -F _openstack openstackclients.openstack" >> usr/share/bash-completion/completions/openstack
|
||||
|
|
Loading…
Reference in New Issue