Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
global log
disable_external_library_logging()
options = _parse_cli_options()
log = setup_global_logger(name=__name__, log_file=options.log_file)
install_tool_manager = None
if options.tool_list_file or options.tool_yaml or \
options.name and options.owner and (options.tool_panel_section_id or options.tool_panel_section_label):
if options.action == "update":
sys.exit("update command can not be used together with tools to be installed.")
install_tool_manager = get_install_repository_manager(options)
if options.action == "test":
install_tool_manager.test_repositories()
else:
install_tool_manager.install_repositories()
elif options.update_tools:
install_tool_manager = get_install_repository_manager(options)
install_tool_manager.install_repositories()
else: