/cookiecutter-python-cli

Cookiecutter template: Python CLI (Click)

Primary LanguageMakefile

Python CLI cookiecutter template

Cookiecutter template that I use for my Python CLI projects.

Starting a new project

$ mkdir my-project
$ cd my-project
$ ~/src/cookiecutter-python-cli/update.sh \
    -t "$(realpath --relative-to=. ~/src/cookiecutter-python-cli)" \
    -p . -b template name=my-project
$ git reset --hard template
$ gh repo create --public --source=. my-project
$ git push -u origin main template

Updating an existing project

$ make template-merge
$ git push origin main template