o .&ßaã@s*dZddlZddlZe e¡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/`` directory and needs to be named ``-.rst``. For example, ``examples/ec2/ec2-create-key-pair.rst``. éNc Ksštj tj tj tj t¡¡¡d¡}tj ||j dtjj¡¡}|d}t   d|¡tj  |¡rI|j j  d¡t|ƒ}| ¡D] }|j  |¡q@dSdS)NÚexamplesÚ.z.rstzLooking for example file at: %sÚExamples)ÚosÚpathÚjoinÚdirnameÚabspathÚ__file__Ú event_classÚreplaceÚsepÚLOGÚdebugÚisfileÚdocÚstyleÚh2ÚopenÚ readlinesÚwrite)Ú help_commandÚkwargsÚdoc_pathÚfpÚline©rúC/usr/lib/python3/dist-packages/awscli/customizations/addexamples.pyÚ add_examples$s( ÿÿýÿ   ür)Ú__doc__rÚloggingÚ getLoggerÚ__name__rrrrrrÚs