File: //usr/share/netplan/netplan_cli/cli/commands/__pycache__/get.cpython-310.pyc
o
ϐxe � @ s2 d Z ddlmZ ddlmZ G dd� dej�ZdS )znetplan get command line� )�NetplanConfigState)�utilsc s, e Zd Z� fdd�Zdd� Zdd� Z� ZS )�
NetplanGetc s t � jdddd� d S )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__c C sD | j jdtdddd� | j jdddd � | j| _| �� | �� d S )
N�key�?�allzThe nested key in dotted format)�type�nargs�default�helpz
--root-dir�/z>Read configuration files from this root directory instead of /)r r )�parser�add_argument�str�command_get�func�
parse_args�run_commandr r r r �run s
�zNetplanGet.runc C s t | j| j�}t|dd� d S )N� )�end)r r �root_dir�print)r �
state_datar r r r ( s zNetplanGet.command_get)�__name__�
__module__�__qualname__r
r r �
__classcell__r r r
r r s
r N)�__doc__�stater r! r �NetplanCommandr r r r r �<module> s