File: //lib/google-cloud-sdk/lib/surface/components/__pycache__/install.cpython-312.pyc
�
��. � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ej G d� dej � � Zy )
z0The command to install/update gcloud components.� )�absolute_import)�division)�unicode_literals)�base)�utilc �0 � e Zd ZdZddd�Zed� � Zd� Zy)�InstallaU Install one or more Google Cloud CLI components.
Ensure that each of the specified components (as well as any dependent
components) is installed on the local workstation. Components are installed
without performing any upgrades to your existing CLI installation. All
components are installed at the current version of your CLI.
a� {description}
Components that are available for installation can be viewed by
running:
$ {parent_command} list
Installing a given component will also install all components on which
it depends. The command lists all components it is about to install,
and asks for confirmation before proceeding.
``{command}'' installs components from the version of the Google Cloud
CLI you currently have installed. You can see your current version by
running:
$ {top_command} version
If you want to update your Google Cloud CLI installation to the latest
available version, use:
$ {parent_command} update
z� The following command installs ``COMPONENT-1'', ``COMPONENT-2'',
and all components that they depend on:
$ {command} COMPONENT-1 COMPONENT-2
)�DESCRIPTION�EXAMPLESc �\ � | j dddd�� | j dddd d
d�� y )
N�
component_idsz
COMPONENT-IDS�+z*The IDs of the components to be installed.)�metavar�nargs�helpz--compile-pythonFT�True�
store_truezTHIS ARGUMENT NEEDS HELP TEXT.)�required�hidden�default�actionr )�add_argument)�parsers �!lib/surface/components/install.py�ArgszInstall.ArgsC sH � �
������
9� � ;�
��������
-�
� /� c �d � t j |� }|j |j � y)zRuns the list command.N)r �GetUpdateManagerr r
)�self�args�update_managers r �RunzInstall.RunR s&