Skip to content

Commit

Permalink
Allow installing literally _all_ the completer
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Oct 13, 2019
1 parent a04dfcb commit 2883364
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion install_gadget.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,10 @@ def CloneRepoTo( url, ref, destination ):
action = 'store_true',
help = 'Enable all supported completers' )

parser.add_argument( '--force-all',
action = 'store_true',
help = 'Enable all unsupported completers' )

done_languages = set()
for name, gadget in GADGETS.items():
lang = gadget[ 'language' ]
Expand Down Expand Up @@ -511,11 +515,15 @@ def CloneRepoTo( url, ref, destination ):

args = parser.parse_args()

if args.force_all and not args.all:
args.all = True

failed = []
all_adapters = {}
for name, gadget in GADGETS.items():
if not gadget.get( 'enabled', True ):
if not getattr( args, 'force_enable_' + gadget[ 'language' ] ):
if ( not args.force_all
and not getattr( args, 'force_enable_' + gadget[ 'language' ] ) ):
continue
else:
if not args.all and not getattr( args, 'enable_' + gadget[ 'language' ] ):
Expand Down

0 comments on commit 2883364

Please sign in to comment.