From 2439cb0f8a0e0fd496926beff945c05bb04a2c51 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Fri, 13 Jul 2018 10:30:40 -0600 Subject: Adding pre gen hook for project names --- hooks/pre_gen_project.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 hooks/pre_gen_project.py diff --git a/hooks/pre_gen_project.py b/hooks/pre_gen_project.py new file mode 100644 index 0000000..258ec53 --- /dev/null +++ b/hooks/pre_gen_project.py @@ -0,0 +1,3 @@ +if '-' in shortname: + print('ERROR: Project shortname cannot contain dashes, please use underscores') + sys.exit(1) -- cgit v1.2.3