App helpers

{% for category, helpers in data.helpers %}

{{ category }}

{% for h in helpers %}
{{ h.name }}
{{ h.brief }}

{% if not '\n' in h.usage %} Usage: {{ h.usage }} {% else %} Usage: {{ h.usage }} {% endif %}

{% if h.args %}

Arguments:

    {% for infos in h.args %} {% if infos|length == 2 %}
  • {{ infos[0] }} : {{ infos[1] }}
  • {% else %}
  • {{ infos[0] }}, {{ infos[1] }} : {{ infos[2] }}
  • {% endif %} {% endfor %}

{% endif %} {% if h.ret %}

Returns: {{ h.ret }}

{% endif %} {% if "example" in h.keys() %}

Example: {{ h.example }}

{% endif %} {% if "examples" in h.keys() %}

Examples:

    {% for example in h.examples %} {% if not example.strip().startswith("# ") %} {{ example }} {% else %} {{ example.strip("# ") }} {% endif %}
    {% endfor %}

{% endif %} {% if h.details %}

Details:

{{ h.details.replace('\n', '
') }}

{% endif %}

Dude, show me the code !

{% endfor %} {% endfor %}

Generated by this script on {{data.date}} (Yunohost version {{data.version}})