Current File : //usr/share/netplan/netplan_cli/cli/commands/__pycache__/get.cpython-312.pyc
�

���g��J�dZddlmZddlmZGd�dej
�Zy)znetplan get command line�)�NetplanConfigState)�utilsc�*��eZdZ�fd�Zd�Zd�Z�xZS)�
NetplanGetc�*��t�|�ddd��y)N�getzRGet a setting by specifying a nested key like "ethernets.eth0.addresses", or "all"T)�
command_id�description�leaf)�super�__init__)�self�	__class__s ��2/usr/share/netplan/netplan_cli/cli/commands/get.pyr
zNetplanGet.__init__s���
���E�%y�"�	�	$�c���|jjdtddd��|jjddd�	�|j|_|j�|j
�y)
N�key�?�allzThe nested key in dotted format)�type�nargs�default�helpz
--root-dir�/z>Read configuration files from this root directory instead of /)rr)�parser�add_argument�str�command_get�func�
parse_args�run_command)rs r�runzNetplanGet.runsd����� � ��S��U�Qr� �s���� � ��s�&f�	!�	h��$�$��	��������rc�^�t|j|j�}t|d��y)N�)�end)rr�root_dir�print)r�
state_datas  rrzNetplanGet.command_get(s ��'����$�-�-�@�
�
�j�b�!r)�__name__�
__module__�__qualname__r
r"r�
__classcell__)rs@rrrs���$�
�"rrN)�__doc__�staterr$r�NetplanCommandr�rr�<module>r1s"��$�&��"��%�%�"r