MCPcopy Index your code
hub / github.com/aws/aws-cli / main

Method main

awscli/clidriver.py:240–252  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

238 self._driver = driver
239
240 def main(self, args):
241 try:
242 rc = self._do_main(args)
243 except BaseException as e:
244 LOG.debug("Exception caught in AWSCLIEntryPoint", exc_info=True)
245 return self._error_handler.handle_exception(
246 e,
247 stdout=get_stdout_text_writer(),
248 stderr=get_stderr_text_writer(),
249 )
250
251 HISTORY_RECORDER.record('CLI_RC', rc, 'CLI')
252 return rc
253
254 def _add_autoprompt_to_user_agent(self, driver, prompt_mode):
255 add_metadata_component_to_user_agent_extra(

Calls 5

_do_mainMethod · 0.95
get_stdout_text_writerFunction · 0.90
get_stderr_text_writerFunction · 0.90
handle_exceptionMethod · 0.45
recordMethod · 0.45