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

Method _create_command_table

awscli/clidriver.py:742–762  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

740 return command_table[parsed_args.operation](remaining, parsed_globals)
741
742 def _create_command_table(self):
743 command_table = OrderedDict()
744 service_model = self._get_service_model()
745 for operation_name in service_model.operation_names:
746 cli_name = xform_name(operation_name, '-')
747 operation_model = service_model.operation_model(operation_name)
748 command_table[cli_name] = ServiceOperation(
749 name=cli_name,
750 parent_name=self._name,
751 session=self.session,
752 operation_model=operation_model,
753 operation_caller=CLIOperationCaller(self.session),
754 )
755 self.session.emit(
756 f'building-command-table.{self._name}',
757 command_table=command_table,
758 session=self.session,
759 command_object=self,
760 )
761 self._add_lineage(command_table)
762 return command_table
763
764 def _add_lineage(self, command_table):
765 for command in command_table:

Callers 1

_get_command_tableMethod · 0.95

Calls 7

_get_service_modelMethod · 0.95
_add_lineageMethod · 0.95
xform_nameFunction · 0.90
ServiceOperationClass · 0.85
CLIOperationCallerClass · 0.85
operation_modelMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected