File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/output/__pycache__/txt.cpython-310.pyc
o
�N�g� � @ s d Z ddlZdd� ZdS )a
Simple text outputter
=====================
The ``txt`` outputter has been developed to make the output from shell commands
on minions appear as they do when the command is executed on the minion.
CLI Example:
.. code-block:: bash
salt '*' foo.bar --out=txt
� Nc K s� d}t | d�r8| D ],}| | }z|�� D ]}||� d|� d�7 }qW q ty5 ||� d|� d�7 }Y q w |S z || d 7 }W |S tyU |t�| �� d�7 }Y |S w )zB
Output the data in lines, very nice for running commands
� �keysz: �
)�hasattr�
splitlines�AttributeError� TypeError�pprintZpformat)�data�kwargs�ret�key�value�line� r �C/opt/saltstack/salt/lib/python3.10/site-packages/salt/output/txt.py�output s&