📂 FileMgr
📍
/
usr
/
share
/
netplan
/
netplan_cli
/
cli
/
commands
/
__pycache__
✏️ /usr/share/netplan/netplan_cli/cli/commands/__pycache__/generate.cpython-312.pyc
✕ Tutup
� ���gm � �f � d Z ddlZddlZddlZddlZddlZddlmZ G d� dej � Z y)znetplan generate command line� N� )�utilsc �* � � e Zd Z� fd�Zd� Zd� Z� xZS )�NetplanGeneratec �* �� t �| � ddd�� y )N�generatezFGenerate backend specific configuration files from /etc/netplan/*.yamlT)� command_id�description�leaf)�super�__init__)�self� __class__s ��7/usr/share/netplan/netplan_cli/cli/commands/generate.pyr zNetplanGenerate.__init__ s �� � ���J�&A�"� � $� c �� � | j j dd�� | j j dd�� | j | _ | j � | j � y )N� --root-dirzOSearch for and generate configuration files in this root directory instead of /)�help� --mappingzFDisplay the netplan device ID/backend/interface name mapping and exit.)�parser�add_argument�command_generate�func� parse_args�run_command)r s r �runzNetplanGenerate.run% sa � ���� � ��&w� !� y���� � ��&n� !� p� �)�)�� ��������r c �j � dt j v rct j d� }|�t d� �t j |ddddddd g� }|d k7 r|dk( rt d� �t d |z � �y t j � g}| j r|d| j gz }| j r|d| j gz }t j d|� t j |� } t j g d�� | j � t j"