Bash Auto Complete for force cli
Closed this issue · 4 comments
Over the weekend, I wrote a bash function that provide TAB completion for force cli, I wonder if it's worthy to be integrated into this repo wiki.
This is the git repo
https://github.com/synle/force-cli-autocomplete
This is great. Thanks, @synle.
One issue I've found is that it breaks filename completion for force push
. I'd like to be able to do e.g. force push -ch<TAB> src/cl<TAB>/MyCl<TAB>
to complete force push -checkonly src/classes/MyClass.cls
.
@cwarden I added the nospace option complete -o nospace -F _force_cli_completion force
.
It should work now, let me know if you have any question.
There is a known issue in macOs which prevents me from using compopt
, so I think this should be an acceptable approach that works on both Mac and Ubuntu
Autocompletion now supported with force completion
, e.g. source <(force completion bash)
.