HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/awscli/customizations/__pycache__/addexamples.cpython-36.opt-1.pyc
3

�T_�@s*dZddlZddlZeje�Zdd�ZdS)aZ
Add authored examples to MAN and HTML documentation
---------------------------------------------------

This customization allows authored examples in ReST format to be
inserted into the generated help for an Operation.  To get this to
work you need to:

* Register the ``add_examples`` function below with the
  ``doc-examples.*.*`` event.
* Create a file containing ReST format fragment with the examples.
  The file needs to be created in the ``examples/<service_name>``
  directory and needs to be named ``<service_name>-<op_name>.rst``.
  For example, ``examples/ec2/ec2-create-key-pair.rst``.

�NcKs�tjjtjjtjjtjjt���d�}tjj||jjdtjj��}|d}t	j
d|�tjj|�r�|jj
jd�t|�}x|j�D]}|jj|�q�WdS)NZexamples�.z.rstzLooking for example file at: %sZExamples)�os�path�join�dirname�abspath�__file__Zevent_class�replace�sep�LOG�debug�isfile�docZstyleZh2�open�	readlines�write)Zhelp_command�kwargsZdoc_path�fp�line�r�!/usr/lib/python3.6/addexamples.py�add_examples$sr)�__doc__rZloggingZ	getLogger�__name__rrrrrr�<module>s