Skip to content
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

Merged
merged 6 commits into from
Feb 12, 2020
Merged

bootstrap diabetes cleanup #189

merged 6 commits into from
Feb 12, 2020

Conversation

dtzar
Copy link
Member

@dtzar dtzar commented Feb 12, 2020

Rename all remaining traces of the word "diabetes" in the code base.

@dtzar dtzar requested a review from sudivate February 12, 2020 16:49
@dtzar dtzar merged commit 22d2526 into master Feb 12, 2020
@dtzar dtzar deleted the diabetes-cleanup branch February 12, 2020 17:43
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",
Copy link
Contributor

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
Copy link
Contributor

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,
Copy link
Contributor

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")
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants