"""
Templates for exec modules
"""

FUNCTION = """
async def {{function.name}}(hub, ctx{{function.header_params}}) -> {{function.return_type}}:
    r'''
    **Autogenerated function**
    {{function.doc|replace("'" * 3, '"' * 3)}}
    Examples:
        Call from code:

        .. code-block:: python

            await hub.exec.{{function.ref}}(ctx{{ ", " if function.required_call_params else "" }}{{function.required_call_params}})

        Call from CLI:

        .. code-block:: bash

            $ idem exec {{function.cli_ref}} {{function.required_call_params}}
    '''
"""
