3 ÝPfÄã@s&dZddlmZddlmZddlmZddlmZddl m Z ddl m Z ddl mZdd lmZdd lmZdd lmZdd lmZdd lmZddlmZejeejee je e je ejeejeejeejeejeejeejeejei Zeeeeeeeeee ee g Zddd„Zdd„Zdd„Z dS)z% Package containing all pip commands é)Úabsolute_import)ÚCompletionCommand)ÚDownloadCommand)Ú FreezeCommand)Ú HashCommand)Ú HelpCommand)Ú ListCommand)Ú CheckCommand)Ú SearchCommand)Ú ShowCommand)ÚInstallCommand)ÚUninstallCommand)Ú WheelCommandTccs:|rtttƒ}ntjƒ}x|D]\}}||jfVqWdS)z5Yields sorted (command name, command summary) tuples.N)Ú_sort_commandsÚ commands_dictÚcommands_orderÚitemsZsummary)ZorderedZcmditemsÚnameZ command_class©rú/usr/lib/python3.6/__init__.pyÚ get_summaries4s  rcCs6ddlm}|jƒ}||tjƒƒ}|r.|dSdSdS)zCommand name auto-correct.r)Úget_close_matchesFN)ZdifflibrÚlowerrÚkeys)rrZclose_commandsrrrÚget_similar_commands@s  rcs‡fdd„}t|jƒ|d�S)Nc s(yˆj|dƒStk r"dSXdS)Nééÿ)ÚindexÚ ValueError)Úkey)ÚorderrrÚkeyfnOsz_sort_commands..keyfn)r)Úsortedr)Zcmddictr r!r)r rrNs rN)T)!Ú__doc__Z __future__rZpip.commands.completionrZpip.commands.downloadrZpip.commands.freezerZpip.commands.hashrZpip.commands.helprZpip.commands.listrZpip.commands.checkr Zpip.commands.searchr Zpip.commands.showr Zpip.commands.installr Zpip.commands.uninstallr Zpip.commands.wheelrrrrrrrrrrrÚsP