diff options
author | Cody Hiar <codyfh@gmail.com> | 2018-07-13 10:30:40 -0600 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2018-07-13 10:30:40 -0600 |
commit | 2439cb0f8a0e0fd496926beff945c05bb04a2c51 (patch) | |
tree | 39a8b172a05433ce52550423e9ec62734d003e2b /hooks | |
parent | a882f70fa71540611223651f89f8c0b2ecebe3d7 (diff) |
Adding pre gen hook for project names
Diffstat (limited to 'hooks')
-rw-r--r-- | hooks/pre_gen_project.py | 3 |
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) |