summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorMatthew Oliver <matt@oliver.net.au>2018-06-29 11:07:00 +1000
committerJohn Dickinson <me@not.mn>2018-07-13 11:24:24 -0700
commit45ed21c6c433e2f5979df2820424bf5b44c478db (patch)
tree31b0885c55d12276029e558fe2be8b9d59a68e55 /setup.cfg
parent25e23988b3be622d51c651f6db339594da01501b (diff)
downloadpython-swiftclient-45ed21c6c433e2f5979df2820424bf5b44c478db.tar.gz
Add bash_completion to swiftclient
This patch basically follows the bash completion model that other OpenStack clients use. It creates a new command to swiftclient called `bash_completion`. The `bash_completion` command by default will print all base flags and exsiting commands. If you pass it a command, it'll print out all base flags and any flags that command accepts. So as you type out your swift command and auto-complete, only the current available flags are offered to you. This is used by the swift.bash_completion script to allow swift commands to be bash completed. To make it work, place the swift.bash_completion file into /etc/bash_completion.d and source it: cp tools/swift.bash_completion /etc/bash_completion.d/swift source /etc/bash_completion.d/swift Because swiftclient itself is creating this flag/command output it should automatically add anything we add to the swiftclient CLI. Change-Id: I5609a19018269762b4640403daae5827bb9ad724
Diffstat (limited to 'setup.cfg')
0 files changed, 0 insertions, 0 deletions