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