| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/google-cloud-sdk/bin/bootstrapping/__pycache__/ |
Upload File : |
�
���4 � �b � d Z ddlmZ ddlmZ ddlmZ ddlZddlZddlZddlZddl m
Z
ddl mZ ddlm
Z
dd lmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ej g � � Zd� Zd� Zd� Zd� Z d� Z!dZ"dZ#de#z Z$dZ%d� Z&d� Z'e(dk r e'� � dS dS )z#Do initial setup for the Cloud CLI.� )�absolute_import)�print_function)�unicode_literalsN)�actions)�
exceptions)�config)�execution_utils)�platforms_install)�
properties)�
console_io)�update_manager)�encoding)�files)� platforms)�gcloud_mainc �& � d� } t j � � }|� dd| d�� � |� dd| d�� � |� ddd �
� � |� dd�
� � |� ddd| d�� � |� dd| d�� � |� ddd�� � |� ddd�� � |� ddd�� � |� dddt j t
j j j d � � d!�"� � |� d#d | d$�� � |� d%d&d'�� � |� t j � � d(d� � � S ))zDParse args for the installer, so interactive prompts can be avoided.c �. � | � � � dv S )N)�true�1)�lower)�ss �bin/bootstrapping/install.py�BoolzParseArgs.<locals>.Bool( s � ��7�7�9�9�
�%�%� z--usage-reportingNz.(true/false) Enable anonymous usage reporting.)�default�type�helpz--screen-readerz'(true/false) Enable screen reader mode.z--universe-domainzhUniverse domain to default to. If specified, sets the [core/universe_domain] property installation-wide.)r r z --rc-pathz�Profile to update with PATH and completion. If given without --command-completion or --path-update in "quiet" mode, a line will be added to this profile for both command completion and path updating.)r z--command-completionz--bash-completionz�(true/false) Add a line for command completion in the profile. In "quiet" mode, if True and you do not provide--rc-path, the default profile will be updated.z
--path-updatez�(true/false) Add a line for path updating in the profile. In "quiet" mode, if True and you do not provide --rc-path, the default profile will be updated.z--disable-installation-options�
store_truez)DEPRECATED. This flag is no longer used.)�actionr z--override-components�*zUOverride the components that would be installed by default and install these instead.)�nargsr z--additional-components�+z�Additional components to install by default. These components will either be added to the default install list, or to the override-components (if provided).�--quietz-qTzgDisable all interactive prompts. If input is required, defaults will be used or an error will be raised)r r r z--install-pythonz3(true/false) Attempt to install Python. MacOS only.�--no-compile-python�store_falsezEFalse. If set, skips python compilation after component installation.� )�argparse�ArgumentParser�add_argumentr �StoreConstPropertyr �VALUES�core�disable_prompts�
parse_args�
bootstrapping�GetDecodedArgv)r �parsers r � ParseArgsr2 % sh � �&� &� &� �"�$�$�&�������;� � � � � ������4� � � � � �����@� � � � � ���� � � � � � ��������
� � � � ������� �
�
�
� ���&�
�6� � � � �
�����/� � � � � �����?� � � � � ����
��
�
'�
�
�
�
0�$�� �� � � � � ������@� � � � � ����
�� � � � �
� � �=�7�9�9�!�"�"�=� >� >�>r c � � | ��t j t j d� � �!t j t j d� � } n�|�"|t j j j j k rd} ngt j
� � � � � � rd} t d� � n%t d� � t j dd�� � } t j t j j j | t j j � � � dS )
aP Display prompts to opt out of usage reporting.
Args:
usage_reporting: bool, If True, enable usage reporting. If None, check the
environmental variable. If None, check if its alternate release channel.
If not, ask.
universe_domain: str, if specified and not 'googleapis.com', set
usage-reporting to False.
N�%CLOUDSDK_CORE_DISABLE_USAGE_REPORTINGFTzF
Usage reporting is always on for alternate release channels.
a
To help improve the quality of this product, we collect anonymized usage data
and anonymized stacktraces when crashes are encountered; additional information
is available at <https://cloud.google.com/sdk/usage-statistics>. This data is
handled in accordance with our privacy policy
<https://cloud.google.com/terms/cloud-privacy-notice>. You may choose to opt in this
collection now (by choosing 'Y' at the below prompt), or at any time in the
future by running the following command:
gcloud config set disable_usage_reporting false
z0Do you want to help improve the Google Cloud CLI��
prompt_stringr ��scope)r �GetEncodedValue�os�environr r+ r, �universe_domainr r �InstallationConfig�Load�IsAlternateReleaseChannel�printr �PromptContinue�PersistProperty�disable_usage_reporting�Scope�INSTALLATION)�usage_reportingr<