3 Pf@s&dZddlmZddlmZddlmZddlmZddl m Z ddl m Z ddl mZdd lmZdd lmZdd lmZdd lmZdd lmZddlmZejeejee je e je ejeejeejeejeejeejeejeejei Zeeeeeeeeee ee g ZdddZddZddZ 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_dictcommands_orderitemsZsummary)ZorderedZcmditemsnameZ command_classr/usr/lib/python3.6/__init__.py get_summaries4s  rcCs6ddlm}|j}||tj}|r.|dSdSdS)zCommand name auto-correct.r)get_close_matchesFN)Zdifflibrlowerrkeys)rrZclose_commandsrrrget_similar_commands@s  rcsfdd}t|j|dS)Nc s(yj|dStk r"dSXdS)N)index ValueError)key)orderrrkeyfnOsz_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.wheelrrrrrrrrrrrsP