<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> import pkg_resources <EOL> import click <EOL> manager = click . Group ( ) <EOL> def get_commands ( ) : <EOL> """<STR_LIT>""" <EOL> for entry_point in pkg_resources . iter_entry_points ( '<STR_LIT>' ) : <EOL> try : <EOL> module = entry_point . load ( ) <EOL> except ImportError : <EOL> continue <EOL> command = module . cmd <EOL> yield entry_point . name , command <EOL> for name , command in get_commands ( ) : <EOL> manager . add_command ( command , name = name ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> manager ( ) </s>
