Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Add message linking to copier template and exit before prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
DragaDoncila committed Nov 6, 2024
1 parent 4fae689 commit c799109
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions hooks/pre_prompt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import sys


if __name__ == '__main__':
print("\n\n\n")
print("#" * 80)
print("The napari cookiecutter plugin template has been replaced with a copier template!")
print()
print("To create a plugin using the new template, run:")
print()
print("python -m pip install copier jinja2-time")
print("python -m pip install npe2")
print("copier copy --trust https://github.com/napari/napari-plugin-template new-plugin-name")
print()
print("For more information, refer to the template README:")
print("https://github.com/napari/napari-plugin-template")
print("#" * 80)
print("\n\n\n")
sys.exit(1)

0 comments on commit c799109

Please sign in to comment.