HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/runners/__pycache__/doc.cpython-310.pyc
o

�N�g��@sTdZddlZddlZddlZddlZddlmZdd�Zdd�Z	dd	�Z
d
d�ZdS)z_
A runner module to collect and display the inline documentation from the
various module types
�N)�SaltClientErrorcCsdS)z
    Always load
    T�rrr�D/opt/saltstack/salt/lib/python3.10/site-packages/salt/runners/doc.py�__virtual__srcC�tj�t�}|��}|S)z�
    Return all inline documentation for runner modules

    CLI Example:

    .. code-block:: bash

        salt-run doc.runner
    )�salt�runnerZRunnerClient�__opts__�get_docs��client�retrrrr�
rcCr)z�
    Return all inline documentation for wheel modules

    CLI Example:

    .. code-block:: bash

        salt-run doc.wheel
    )r�wheelZWheelr	r
rrrrr$rrcCs�i}tj�td��V}z|jddtdd�D]}|��D]}|�|�qqWntyE}zt|�gWYd}~Wd�Sd}~wwt	j
�|d��g�}t
t|��}|Wd�S1scwYdS)z�
    Collect all the sys.doc output from each minion and return the aggregate

    CLI Example:

    .. code-block:: bash

        salt-run doc.execution
    Z	conf_file�*zsys.doc�timeout)rNr
)rrZget_local_clientr	Zcmd_iter�values�updater�print�	itertools�chain�
from_iterable�items�dict�list)Zdocsrr
�v�exc�irrr�	execution3s$
����$�r)�__doc__rZsalt.clientrZsalt.runnerZ
salt.wheelZsalt.exceptionsrrrrrrrrr�<module>s