File: //usr/share/netplan/netplan_cli/cli/commands/__pycache__/status.cpython-310.pyc
o
ϐxe7* � @ s� d Z ddlZddlZddlZddlZddlmZ ddlmZm Z e�
d�ZdZzddl
mZ dd lmZ dd
lmZ G dd� de�Zd
ZW n eyS e�d� Y nw G dd� dej�ZdS )znetplan status command line� N� )�utils)�SystemConfigState�JSONz\[([a-z0-9]+)\].*\[\/\1\]F)�Console)�RegexHighlighter)�Themec @ s e Zd ZdZddgZdS )�NetplanHighlighterznetplan.z"(^|[\s\/])(?P<int>\d+)([\s:]?\s|$)z(?P<str>(\"|\').+(\"|\'))N)�__name__�
__module__�__qualname__�
base_style�
highlights� r r �5/usr/share/netplan/netplan_cli/cli/commands/status.pyr % s
�r Tz4python3-rich not found, falling back to plain outputc sL e Zd Z� fdd�Zdd� Zdd� Zdded ed
dfdd�Zd
d� Z � Z
S )�
NetplanStatusc s t � jdddd� d| _d S )N�statusz,Query networking state of the running systemT)�
command_id�description�leafF)�super�__init__�all��self�� __class__r r r 1 s
�
zNetplanStatus.__init__c C sn | j jddtd dd� | j jddddd � | j jd
dddd � | j jd
dddd� | j| _| �� | �� d S )N�ifname�?zShow only this interface)�nargs�type�default�helpz-az--all�
store_truez(Show all interface data (incl. inactive))�actionr"