File: //lib/google-cloud-sdk/lib/googlecloudsdk/calliope/__pycache__/backend.cpython-312.pyc
�
���� � �T � d Z ddlmZ ddlmZ ddlmZ ddlZddlZddlZddlZddl m
Z
ddl mZ ddl mZ dd l m
Z
dd
l mZ ddl mZ ddl mZ dd
l mZ ddl mZ ddl mZ ddlmZ ddlmZ ddlmZ ddlmZ ddlZ G d� de� Z G d� de� Z G d� de� Z G d� de� Z y)zGBackend stuff for the calliope.cli module.
Not to be used by mortals.
� )�absolute_import)�division)�unicode_literalsN)�actions)�arg_parsers)�base)�command_loading)�display)�
exceptions)�parser_arguments)�
parser_errors)�parser_extensions)�
usage_text)�handlers)�log)�metrics)�textc �$ � e Zd ZdZdd�Zd� Zd� Zy)�_Notesz$Auto-generated NOTES section helper.Nc � � g | _ |r1| j j |j � � d| _ y d| _ y )NTF)�_notes�append�rstrip�
_paragraph)�self�explicit_notess �&lib/googlecloudsdk/calliope/backend.py�__init__z_Notes.__init__2 s5 � ��D�K��
�k�k����.�.�0�1��d�o��d�o� c � � |s|�/y| j r"d| _ | j j d� | j j |j � � y)z7Adds a note line with preceding separator if not empty.NF� )r r r r )r �lines r �AddLinez_Notes.AddLine: sE � ��
���
����d�o�
�k�k������K�K���t�{�{�}�%r c �T � | j rdj | j � S dS )z.Returns the notes contents as a single string.�
N)r �join�r s r �GetContentsz_Notes.GetContentsD s � �%)�[�[�4�9�9�T�[�[�!�:�d�:r �N)�__name__�
__module__�__qualname__�__doc__r r# r( � r r r r / s � �,��&�;r r c � � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zdd�Zd� Zd� Zd� Zdd�Z dd�Zd� Zd� Zd� Zd� Zd� Zd� Zd d�Zd!d�Zdd�Zy
)"�
CommandCommonz�A base class for CommandGroup and Command.
It is responsible for extracting arguments from the modules and does argument
validation, since this is always the same for groups and commands.
c � � |j | _ || _ |d | _ | j j dd� | _ t j d|� | j |d<