@themes.command('new')
@click.argument('theme_identifier', callback=check_cookiecutter)
@click.option('--template', '-t', type=click.STRING, default='https://github.com/sh4nks/cookiecutter-flaskbb-theme', help='Path to a cookiecutter template or to a valid git repo.')
def new_theme(theme_identifier, template):
 from cookiecutter.main import cookiecutter
 out_dir = os.path.join(current_app.root_path, 'themes')
 click.secho('[+] Creating new theme {}'.format(theme_identifier), fg='cyan')
 cookiecutter(template, output_dir=out_dir)
 click.secho('[+] Done. Created in {}'.format(out_dir), fg='green', bold=True)

@ themes . command ( 'new' ) @ click . argument ( 'theme_identifier' , callback = check_cookiecutter ) @ click . option ( '--template' , '-t' , type = click . STRING , default = 'https://github.com/sh4nks/cookiecutter-flaskbb-theme' , help = 'Path to a cookiecutter template or to a valid git repo.' ) def new_theme ( theme_identifier , template ) : from cookiecutter . main import cookiecutter out_dir = os . path . join ( current_app . root_path , 'themes' ) click . secho ( '[+] Creating new theme {}' . format ( theme_identifier ) , fg = 'cyan' ) cookiecutter ( template , output_dir = out_dir ) click . secho ( '[+] Done. Created in {}' . format ( out_dir ) , fg = 'green' , bold = True )
creates a new theme based on the cookiecutter theme template .