(self)
| 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: |
no test coverage detected