aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2018-07-13 10:30:40 -0600
committerCody Hiar <codyfh@gmail.com>2018-07-13 10:30:40 -0600
commit2439cb0f8a0e0fd496926beff945c05bb04a2c51 (patch)
tree39a8b172a05433ce52550423e9ec62734d003e2b
parenta882f70fa71540611223651f89f8c0b2ecebe3d7 (diff)
Adding pre gen hook for project names
-rw-r--r--hooks/pre_gen_project.py3
1 files changed, 3 insertions, 0 deletions
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)