def version_msg(): from cookiecutter.cli import version_msg from cookiecutter import __version__ return 'Cookiepatcher %(version)s from {}; {}'.format( os.path.dirname(os.path.dirname(os.path.abspath(__file__))), version_msg() % dict(version=__version__))
def version_msg(): from cookiecutter.cli import version_msg from cookiecutter import __version__ return 'Cookiepatcher %(version)s from {}; {}'.format( os.path.dirname(os.path.dirname(os.path.abspath(__file__))), version_msg() % dict(version=__version__) )
import yaml logger = logging.getLogger(__name__) def version_msg(): from cookiecutter.cli import version_msg from cookiecutter import __version__ return 'Cookiepatcher %(version)s from {}; {}'.format( os.path.dirname(os.path.dirname(os.path.abspath(__file__))), version_msg() % dict(version=__version__)) @click.command() @click.version_option(__version__, '-V', '--version', message=version_msg()) @click.argument('template') @click.argument('target') @click.option( '--no-input', is_flag=True, help='Do not prompt for parameters and only use cookiecutter.json ' 'file content', ) @click.option( '-c', '--checkout', help='branch, tag or commit to checkout after git clone', ) @click.option('-v', '--verbose',
logger = logging.getLogger(__name__) def version_msg(): from cookiecutter.cli import version_msg from cookiecutter import __version__ return 'Cookiepatcher %(version)s from {}; {}'.format( os.path.dirname(os.path.dirname(os.path.abspath(__file__))), version_msg() % dict(version=__version__) ) @click.command() @click.version_option(__version__, '-V', '--version', message=version_msg()) @click.argument('template') @click.argument('target') @click.option( '--no-input', is_flag=True, help='Do not prompt for parameters and only use cookiecutter.json ' 'file content', ) @click.option( '-c', '--checkout', help='branch, tag or commit to checkout after git clone', ) @click.option( '-v', '--verbose', is_flag=True, help='Print debug information', default=False )