Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
from .asone import completer as asone_completer
from .array import completer as array_completer
from .single import completer as single_completer
from ... import qsub_array_exe
data = info.line.split()[1:]
if "scattered" in data:
return scattered_completer(self, info, data)
elif "interactive" in data:
return interactive_completer(self, info, data)
elif "asone" in data:
return asone_completer(self, info, data)
elif "single" in data:
return single_completer(self, info, data)
elif qsub_array_exe is not None and "array" in data:
return array_completer(self, info, data)
result = ["scattered", "interactive", 'asone', 'single', '--help']
return result + ['array'] if qsub_array_exe is not None else result