MCPcopy
hub / github.com/aws/aws-cli / _emit_session_event

Method _emit_session_event

awscli/clidriver.py:616–626  ·  view source on GitHub ↗
(self, parsed_args)

Source from the content-addressed store, hash-verified

614 )
615
616 def _emit_session_event(self, parsed_args):
617 # This event is guaranteed to run after the session has been
618 # initialized and a profile has been set. This was previously
619 # problematic because if something in CLIDriver caused the
620 # session components to be reset (such as session.profile = foo)
621 # then all the prior registered components would be removed.
622 self.session.emit(
623 'session-initialized',
624 session=self.session,
625 parsed_args=parsed_args,
626 )
627
628 def _show_error(self, msg):
629 LOG.debug(msg, exc_info=True)

Callers 1

mainMethod · 0.95

Calls 1

emitMethod · 0.45

Tested by

no test coverage detected