def main():
try:
logger = configure_logger()
path_to_config_file, export_formats, export_profiles_to_list, loop_enabled = parse_command_line_arguments(logger)
sc_client, settings = configure(logger, path_to_config_file, export_formats)
if export_profiles_to_list is not None:
show_export_profiles_and_exit(export_profiles_to_list, sc_client)
if loop_enabled:
loop(logger, sc_client, settings)
else:
sync_exports(logger, settings, sc_client)
logger.info('Completed sync process, exiting')
except KeyboardInterrupt:
print("Interrupted by user, exiting.")
sys.exit(0)
exporter.py 文件源码
python
阅读 47
收藏 0
点赞 0
评论 0
评论列表
文章目录