| Current Path : /usr/share/netplan/netplan/cli/commands/__pycache__/ |
| Current File : //usr/share/netplan/netplan/cli/commands/__pycache__/get.cpython-38.pyc |
U
�]a+
� @ sH d Z ddlZddlZddlm mZ ddlmZ G dd� dej�Z dS )znetplan get command line� N)�
ConfigManagerc 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__� �./usr/share/netplan/netplan/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"