o ÏEcdã@s˜ddlZddlZddlmZddlmZmZddlmm m Z ddl m Z ddl mZmZddlmZmZddlmZeeƒZGdd „d e ƒZdS) éN)ÚValues)ÚAnyÚList)ÚCommand)ÚERRORÚSUCCESS)Ú CommandErrorÚPipError)Ú getLoggerc@s0eZdZdZdZdZd#dd„Zded ee de fd d „Z ded ee ddfd d „Z ded ee ddfdd„Zded ee ddfdd„Zdee ddfdd„Zdee ddfdd„Zded ee ddfdd„Zded ee ddfdd„Zdede de fdd„Zdedee fdd„Zded e dee fd!d"„ZdS)$Ú CacheCommandaw Inspect and manage pip's wheel cache. Subcommands: - dir: Show the cache directory. - info: Show information about the cache. - 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. ```` can be a glob expression or a package name. Tz˜ %prog dir %prog info %prog list [] [--format=[human, abspath]] %prog remove %prog purge ÚreturnNcCs,|jjddddddd|j d|j¡dS) Nz--formatZstoreÚ list_formatÚhuman)rÚabspathz:Select the output format among: human (default) or abspath)ÚactionÚdestÚdefaultÚchoicesÚhelpr)Zcmd_optsZ add_optionÚparserZinsert_option_group)Úself©rúO/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/commands/cache.pyÚ add_options'sú zCacheCommand.add_optionsÚoptionsÚargsc Cs¶|j|j|j|j|jdœ}|jst d¡tS|r|d|vr,t dd  t |ƒ¡¡tS|d}z||||dd…ƒWt St yZ}zt |j d¡tWYd}~Sd}~ww)N)ÚdirÚinfoÚlistÚremoveÚpurgezZoptparserÚtypingrrZpip._internal.utils.filesystemZ _internalZutilsr=Zpip._internal.cli.base_commandrZpip._internal.cli.status_codesrrZpip._internal.exceptionsrr Zpip._internal.utils.loggingr rUr(r rrrrÚs