관리-도구
편집 파일: configuration.cpython-37.pyc
B ��Re�$ � @ s� d dl Z d dlZd dlZd dlmZ d dlmZmZ d dlm Z m Z mZ d dlm Z d dlmZ d dlmZmZ d dlmZ er�d d lmZmZmZ d d lmZ d dlmZ e �e�ZG dd � d e�ZdS )� N)�Command)�ERROR�SUCCESS)� Configuration�get_configuration_files�kinds)�PipError)� indent_log)�get_prog�write_output)�MYPY_CHECK_RUNNING)�List�Any�Optional)�Values)�Kindc @ s� e Zd ZdZdZdZdd� Zdd� Zdd � Zd d� Z dd � Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd S )!�ConfigurationCommandah 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 - debug: List the configuration files and values defined under them 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. Ta %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 %prog [<file-option>] debug c C sl | j jdddd dd� | j jdddd d d� | j jdddd d d� | j jdddd dd� | j�d| j � d S )Nz--editor�editor�storez\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 )�cmd_opts� add_option�parser�insert_option_group)�self� r"