httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
33.24k stars 3.68k forks source link

Bash completion improvements #331

Open jkbrzt opened 9 years ago

jkbrzt commented 9 years ago

// #330 #326

mihirvj commented 9 years ago

I'll look into this over next few days

jkbrzt commented 9 years ago

This looks quite interesting: https://github.com/kislyuk/argcomplete

So does the way Django does it for manage.py.

mihirvj commented 9 years ago

Yes. I was looking into argcomplete previously. Couple of issues I found were that requirement of a new package argcomplete. Also, it requires additional setup like activation of global python autocomplete. Wasn't entirely sure whether to go that way. Django way looks more interesting.

I understand that writing a different bash script for autocompletion will add an overhead in case options change, so better to include it in python.

I'll see which one to dig deep into. Any suggestions?