Support setting project name from the environment.
Signed-off-by: Daniel Nephin <dnephin@yelp.com>
This commit is contained in:
parent
92ae5af019
commit
fac49b62b6
2 changed files with 9 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ class Command(DocoptCommand):
|
|||
def normalize_name(name):
|
||||
return re.sub(r'[^a-zA-Z0-9]', '', name)
|
||||
|
||||
project_name = project_name or os.environ.get('FIG_PROJECT_NAME')
|
||||
if project_name is not None:
|
||||
return normalize_name(project_name)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue