@cli.command()
@click.option('-d', '--directory', default='./', type=click.Path(), required=True)
def examples(directory):
 source_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'examples')
 try:
  shutil.copytree(source_dir, os.path.join(directory, 'examples'))
 except OSError as e:
  if (e.errno == errno.EEXIST):
   print_('Folder examples is exists.')

@ cli . command ( ) @ click . option ( '-d' , '--directory' , default = './' , type = click . Path ( ) , required = True ) def examples ( directory ) : source_dir = os . path . join ( os . path . dirname ( os . path . realpath ( __file__ ) ) , 'examples' ) try : shutil . copytree ( source_dir , os . path . join ( directory , 'examples' ) ) except OSError as e : if ( e . errno == errno . EEXIST ) : print_ ( 'Folder examples is exists.' )
generate example strategies to target folder .