-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bootstrap diabetes cleanup #189
Conversation
def replaceprojectname(project_dir, project_name, rename_name): | ||
# Replace instances of rename_name within files with project_name | ||
dirs = [r".env.example", | ||
r".pipelines\azdo-base-pipeline.yml", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\ won't work for xplat, might be out of scope for this PR.
@@ -57,38 +57,6 @@ def deletedir(self): | |||
os.system( | |||
'rmdir /S /Q "{}"'.format(os.path.join(self._project_directory, dir))) # NOQA: E501 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rmdir won't work for xplat, probably out of scope for this PR.
fin.write(data) | ||
fin.close() | ||
|
||
|
||
def main(args): | ||
parser = argparse.ArgumentParser(description='New Template') | ||
parser.add_argument("--d", type=str, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also stick to the standard of -d or --directory, same for below
@@ -108,6 +76,40 @@ def validateargs(self): | |||
raise Exception("Project name should be 3 to 15 chars long") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we're replacing more things, I think our valid set of chars might be reduced. \w and _ are probably it.
Rename all remaining traces of the word "diabetes" in the code base.