/usr/share/netplan/netplan/cli/commands/__pycache__
Edit: /usr/share/netplan/netplan/cli/commands/__pycache__/get.cpython-38.pyc (2213B)
U
)/b
@ sX d Z ddlZddlZddlZddlZddlm mZ ddlm Z G dd dej
ZdS )znetplan get command line Nc s4 e Zd Z fddZdd Zdd Zdd Z ZS )
NetplanGetc s t jdddd d S )NgetzRGet a setting by specifying a nested key like "ethernets.eth0.addresses", or "all"T)
command_iddescriptionleaf)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 )
Nkey?allzThe nested key in dotted format)typenargsdefaulthelpz
--root-dir/z>Read configuration files from this root directory instead of /)r r )parseradd_argumentstrcommand_getfunc
parse_argsrun_commandr r
r
r run# s
zNetplanGet.runc C sz |dkr|j |d d S |ds0dd|f}tdd|dd}t "}|j |d tj |||d W 5 Q R X d S )Nr )output_filenetwork.z (?