HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/share/netplan/netplan_cli/cli/commands/__pycache__/get.cpython-310.pyc
o

ϐxe�@s2dZddlmZddlmZGdd�dej�ZdS)znetplan get command line�)�NetplanConfigState)�utilscs,eZdZ�fdd�Zdd�Zdd�Z�ZS)�
NetplanGetcst�jdddd�dS)N�getzRGet a setting by specifying a nested key like "ethernets.eth0.addresses", or "all"T)�
command_id�description�leaf)�super�__init__��self��	__class__��2/usr/share/netplan/netplan_cli/cli/commands/get.pyr
s
�zNetplanGet.__init__cCsD|jjdtdddd�|jjdddd	�|j|_|��|��dS)
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_commandrrrr�runs
�zNetplanGet.runcCst|j|j�}t|dd�dS)N�)�end)rr�root_dir�print)r�
state_datarrrr(szNetplanGet.command_get)�__name__�
__module__�__qualname__r
r r�
__classcell__rrr
rrs
rN)�__doc__�staterr!r�NetplanCommandrrrrr�<module>s