| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/netplan/netplan/cli/commands/__pycache__/ |
Upload File : |
o
�
ed� � @ s4 d Z ddlm mZ ddlZG dd� dej�ZdS )znetplan info command line� Nc s, e Zd Z� fdd�Zdd� Zdd� Z� ZS )�NetplanInfoc s t � jdddd� d S )N�infozShow available featuresT)�
command_id�description�leaf)�super�__init__)�self�� __class__� �//usr/share/netplan/netplan/cli/commands/info.pyr s
�zNetplanInfo.__init__c C sR | j jdd�}|jdddddd� |jd ddd
dd� | j| _| �� | �� d S )NF)�requiredz--json�version_format�store_const�jsonz*Output version and features in JSON format)�dest�action�const�helpz--yaml�yamlz*Output version and features in YAML format)�parser�add_mutually_exclusive_group�add_argument�command_info�func�
parse_args�run_command)r �format_groupr r r
�run s
�
�zNetplanInfo.runc C s� dddii}t jj}|d �d|i� | jd u rd| _| jdkr/dd l}t|j|dd �� d S | jdkrLtd
�|d d �� t jjD ]
}td| � qCd S d S )Nz
netplan.io�websitezhttps://netplan.io/�featuresr r r � )�indentz'netplan.io:
website: "{}"
features:z - ) �netplan� _features�NETPLAN_FEATURE_FLAGS�updater r �print�dumps�format)r �netplan_version�flagsr �featurer r r
r , s&