Current File : //usr/share/netplan/netplan_cli/cli/commands/__pycache__/set.cpython-312.pyc |
�
Z9
gJ � �V � d Z ddlZddlZddlZddlmZ ddlZdZddgZ G d� d e� Z y)
znetplan set command line� N� )�NetplanCommandz70-netplan-set.yaml�renderer�versionc �* � � e Zd Z� fd�Zd� Zd� Z� xZS )�
NetplanSetc �* �� t �| � ddd�� y )N�setzTAdd new setting by specifying a dotted key=value pair like ethernets.eth0.dhcp4=trueT)�
command_id�description�leaf)�super�__init__)�self� __class__s ��2/usr/share/netplan/netplan_cli/cli/commands/set.pyr zNetplanSet.__init__! s �� �
���E�%{�"� � $� c �* � | j j dt d�� | j j dt d�� | j j ddd� � | j | _ | j � | j
� y )
N� key_valuezNThe nested key=value pair in dotted format. Value can be NULL to delete a key.)�type�helpz
--origin-hintz�Can be used to help choose a name for the overwrite YAML file. A .yaml suffix will be appended automatically.z
--root-dir�/zAOverwrite configuration files in this root directory instead of /)�defaultr )�parser�add_argument�str�command_set�func�
parse_args�run_command)r s r �runzNetplanSet.run&