[commands/cache] Add docs for 'pip cache' command.

This commit is contained in:
Ellen Marie Dash 2019-10-07 23:59:30 -04:00
parent c59ced6942
commit 8ae71adbea
2 changed files with 30 additions and 5 deletions

View File

@ -0,0 +1,20 @@
:orphan:
==========
pip-cache
==========
Description
***********
.. pip-command-description:: cache
Usage
*****
.. pip-command-usage:: cache
Options
*******
.. pip-command-options:: cache

View File

@ -19,14 +19,19 @@ logger = logging.getLogger(__name__)
class CacheCommand(Command):
"""Inspect and manage pip's caches.
"""
Inspect and manage pip's caches.
Subcommands:
info: Show information about the caches.
list: List filenames of packages stored in the cache.
remove: Remove one or more package from the cache.
purge: Remove all items from the cache.
info:
Show information about the caches.
list:
List filenames of packages stored in the cache.
remove:
Remove one or more package from the cache.
purge:
Remove all items from the cache.
<pattern> can be a glob expression or a package name.
"""