MCPcopy Create free account
hub / github.com/aws/aws-cli / _create_subcommand_table

Method _create_subcommand_table

awscli/help.py:504–515  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

502 return self._subcommand_table
503
504 def _create_subcommand_table(self):
505 subcommand_table = {}
506 # Add the ``aws help topics`` command to the ``topic_table``
507 topic_lister_command = TopicListerCommand(self.session)
508 subcommand_table['topics'] = topic_lister_command
509 topic_names = self._topic_tag_db.get_all_topic_names()
510
511 # Add all of the possible topics to the ``topic_table``
512 for topic_name in topic_names:
513 topic_help_command = TopicHelpCommand(self.session, topic_name)
514 subcommand_table[topic_name] = topic_help_command
515 return subcommand_table
516
517
518class ServiceHelpCommand(HelpCommand):

Callers 1

subcommand_tableMethod · 0.95

Calls 3

TopicListerCommandClass · 0.85
TopicHelpCommandClass · 0.85
get_all_topic_namesMethod · 0.80

Tested by

no test coverage detected