CURRENT PATH:
/
opt
/
gsutil
/
gslib
/
commands
/
__pycache__
/
[ ⬅ KEMBALI ]
|
[ HOME ]
Upload File:
Upload Ke Sini
Dir Baru
File Baru
Editing:
help.cpython-39.pyc
a +(Wg�$ � @ s$ d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZddlZddlZddl Z ddl Z ddlmZ ddlm Z ddlZdd lmZ dd lmZ ddlZddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dZ de d Z!dZ"G dd� de�Z#dS )�&Implementation of gsutil help command.� )�absolute_import)�print_function)�division)�unicode_literalsN)�PIPE)�Popen)�Command)� OLD_ALIAS_MAP)�CommandException)�HelpProvider)�MAX_HELP_NAME_LEN)� constants)� IS_WINDOWS)�IsRunningInteractively)�GetTermLines)� text_utilz" gsutil help [command or topic] z <B>SYNOPSIS</B> a� <B>DESCRIPTION</B> The following command provides a summary of gsutil commands and additional topics on which help is available: gsutil help The following command provides help about the specified command or topic: gsutil help [command or topic] The following command provides help about the specified sub-command: gsutil help [command] [sub-command] For example, running the following provides help about the "set" sub-command of the "acl" command: gsutil help acl set If you set the PAGER environment variable to the path to a pager program (such as /bin/less on Linux), long help sections are piped through the specified pager. z�Usage: gsutil [-D] [-DD] [-h header]... [-i service_account] [-m] [-o section:flag=value]... [-q] [-u user_project] [command [opts...] args...]c @ s` e Zd ZdZejdddgeddddd dd � Zejddgdde i d �Z dd� Zdd� Zdd� Z dS )�HelpCommandr �help�?Zmanr � � TF)�command_name_aliases�usage_synopsis�min_args�max_args�supported_sub_args�file_url_ok�provider_url_ok�urls_start_arg�command_helpz"Get help about commands and topics)� help_name�help_name_aliases� help_type�help_one_line_summary� help_text�subcommand_help_textc C s< | � � \}}g }| js�|�dt � dtt� d }t|d dd� d�D ]}|�||jj|jj f � qH|�d� t|d d d� d�D ]}|�||jj|jj f � q�|�d� �ntd}| jd }||vr�|�d| � �nL|| }d}t | j�dk�r�|jj} | �r8| jd | v �r8|d | jd }| | jd } nbd}| �sV|�d||f � nDg }| D ]}|�d||f � �q^|�d| jd ||d�|�f � |�s(|�s�|jj}|jj } |�d� |�d||jj f � |�d� |�| �d�� t�|dg�d } | �r(d|| f }|�d� |�|� | �d�|�� d S )z)Command entry point for the help command.z%s Available commands: z %-zs%s r c S s | j jS �N�� help_specr! ��hp� r, �"/opt/gsutil/gslib/commands/help.py�<lambda>r � z(HelpCommand.RunCommand.<locals>.<lambda>)�keyz Additional help topics: �additional_helpc S s | j jS r'