def get_provider_help(session): provider = session.get_variable('provider') cli_data = rstgen.get_cli_data(session, provider) rst_contents = six.StringIO() rstgen.gen_man(session, provider=provider, cli_data=cli_data, fp=rst_contents) render_docs(_encode_contents(rst_contents))
def get_operation_help(session, service, operation): rst_contents = six.StringIO() rstgen.gen_man(session, operation=operation, fp=rst_contents) render_docs(_encode_contents(rst_contents))
def get_service_help(session, service): rst_contents = six.StringIO() rstgen.gen_man(session, service=service, fp=rst_contents) render_docs(_encode_contents(rst_contents))