def main(): logger.init_execution_trace() try: ScarCLI().parse_arguments() logger.end_execution_trace() except Exception as excp: print(excp) logger.exception(excp) logger.end_execution_trace_with_errors()
def main(): logger.init_execution_trace() try: func_call = parse_arguments() # Default provider # If more providers, analyze the arguments and build the required one AWS(func_call) logger.end_execution_trace() except Exception as excp: print(excp) logger.exception(excp) logger.end_execution_trace_with_errors()
def main(): logger.init_execution_trace() try: func_call = parse_arguments() # Default provider # If more providers, analyze the arguments and build the required one AWS(func_call) # Build the OSCAR controller only with 'init', 'rm' and 'ls' commands if func_call in ['init', 'rm', 'ls']: OSCAR(func_call) logger.end_execution_trace() except Exception as excp: print(excp) logger.exception(excp) logger.end_execution_trace_with_errors()
def finish_scar_execution() -> None: """Finishes the program execution.""" logger.end_execution_trace() sys.exit(0)