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

Method doc_subitem

awscli/clidocs.py:470–481  ·  view source on GitHub ↗
(self, command_name, help_command, **kwargs)

Source from the content-addressed store, hash-verified

468 doc.style.toctree()
469
470 def doc_subitem(self, command_name, help_command, **kwargs):
471 doc = help_command.doc
472 subcommand = help_command.command_table[command_name]
473 subcommand_table = getattr(subcommand, 'subcommand_table', {})
474 # If the subcommand table has commands in it,
475 # direct the subitem to the command's index because
476 # it has more subcommands to be documented.
477 if len(subcommand_table) > 0:
478 file_name = f'{command_name}/index'
479 doc.style.tocitem(command_name, file_name=file_name)
480 else:
481 doc.style.tocitem(command_name)
482
483 def doc_meta_description(self, help_command, **kwargs):
484 doc = help_command.doc

Callers

nothing calls this directly

Calls 1

tocitemMethod · 0.45

Tested by

no test coverage detected