Просмотр исходного кода

Add definition of pyenv help in COMMANDS.md (#2139)

pull/2140/head
sandipanpanda 4 лет назад
committed by GitHub
Родитель
Сommit
cfe2aba670
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
1 измененных файлов: 9 добавлений и 3 удалений
  1. +9
    -3
      COMMANDS.md

+ 9
- 3
COMMANDS.md Просмотреть файл

@ -5,6 +5,7 @@ first argument.
The most common subcommands are: The most common subcommands are:
* [`pyenv help`](#pyenv-help)
* [`pyenv commands`](#pyenv-commands) * [`pyenv commands`](#pyenv-commands)
* [`pyenv local`](#pyenv-local) * [`pyenv local`](#pyenv-local)
* [`pyenv global`](#pyenv-global) * [`pyenv global`](#pyenv-global)
@ -24,6 +25,11 @@ The most common subcommands are:
* [`pyenv init`](#pyenv-init) * [`pyenv init`](#pyenv-init)
* [`pyenv completions`](#pyenv-completions) * [`pyenv completions`](#pyenv-completions)
## `pyenv help`
List all available pyenv commands along with a brief description of what they do. Run `pyenv help <command>` for information on a specific command. For full documentation, see: https://github.com/pyenv/pyenv#readme
## `pyenv commands` ## `pyenv commands`
Lists all available pyenv commands. Lists all available pyenv commands.
@ -287,18 +293,18 @@ Lists all Python versions with the given command installed.
## `pyenv exec` ## `pyenv exec`
`Usage: pyenv exec <command> [arg1 arg2...]`
Usage: pyenv exec <command> [arg1 arg2...]
Runs an executable by first preparing PATH so that the selected Python Runs an executable by first preparing PATH so that the selected Python
version's `bin` directory is at the front. version's `bin` directory is at the front.
For example, if the currently selected Python version is 3.9.7: For example, if the currently selected Python version is 3.9.7:
`pyenv exec pip install -r requirements.txt`
pyenv exec pip install -r requirements.txt
is equivalent to: is equivalent to:
`PATH="$PYENV_ROOT/versions/3.9.7/bin:$PATH" pip install -r requirements.txt`
PATH="$PYENV_ROOT/versions/3.9.7/bin:$PATH" pip install -r requirements.txt
## `pyenv root` ## `pyenv root`

Загрузка…
Отмена
Сохранить