shell bypass 403
U
��.e: � @ s� d dl Z d dlZd dlZd dlmZ d dlmZmZ d dlm Z m
Z
mZ d dlm
Z
d dlmZmZ e �e�ZG dd� de�ZdS ) � N)�Command)�ERROR�SUCCESS)�
Configuration�get_configuration_files�kinds)�PipError)�get_prog�write_outputc sx e Zd ZdZdZdZ� fdd�Zdd� Zdd � Zd
d� Z dd
� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Z� ZS )�ConfigurationCommanda9 Manage local and global configuration.
Subcommands:
list: List the active configuration (or from the file specified)
edit: Edit the configuration file in an editor
get: Get the value associated with name
set: Set the name=value
unset: Unset the value associated with name
If none of --user, --global and --site are passed, a virtual
environment configuration file is used if one is active and the file
exists. Otherwise, all modifications happen on the to the user file by
default.
Tz�
%prog [<file-option>] list
%prog [<file-option>] [--editor <editor-path>] edit
%prog [<file-option>] get name
%prog [<file-option>] set name value
%prog [<file-option>] unset name
c s� t t| �j||� d | _| jjdddd dd� | jjdddd d
d� | jjdddd d
d� | jjdddd dd� | j�d| j� d S )Nz--editor�editorZstorez\Editor to use to edit the file. Uses VISUAL or EDITOR environment variables if not provided.)�dest�action�default�helpz--global�global_file�
store_trueFz+Use the system-wide configuration file onlyz--user� user_filez$Use the user configuration file onlyz--site� site_filez3Use the current environment configuration file onlyr )�superr �__init__�
configurationZcmd_optsZ
add_option�parserZinsert_option_group)�self�args�kwargs�� __class__� �H/usr/lib/python3.8/site-packages/pip/_internal/commands/configuration.pyr 0 s>