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

Method _build_subcommand_table

awscli/customizations/commands.py:232–246  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

230 raise NotImplementedError("_run_main")
231
232 def _build_subcommand_table(self):
233 subcommand_table = OrderedDict()
234 for subcommand in self.SUBCOMMANDS:
235 subcommand_name = subcommand['name']
236 subcommand_class = subcommand['command_class']
237 subcommand_table[subcommand_name] = subcommand_class(self._session)
238 name = '_'.join([c.name for c in self.lineage])
239 self._session.emit(
240 f'building-command-table.{name}',
241 command_table=subcommand_table,
242 session=self._session,
243 command_object=self,
244 )
245 self._add_lineage(subcommand_table)
246 return subcommand_table
247
248 def _display_help(self, parsed_args, parsed_globals):
249 help_command = self.create_help_command()

Callers 2

__call__Method · 0.95
subcommand_tableMethod · 0.95

Calls 2

_add_lineageMethod · 0.95
emitMethod · 0.45

Tested by

no test coverage detected