Skip to content

Conversation

dtzar
Copy link
Contributor

@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