We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4483115 commit ff5b628Copy full SHA for ff5b628
tools/rename_template.py
@@ -33,15 +33,15 @@ def load_gitignore(repo):
33
34
root = Path(root)
35
for src in list(dirs):
36
- if "TODO" in src:
37
- dst = src.replace("TODO", new_name)
+ if "CHANGEME" in src:
+ dst = src.replace("CHANGEME", new_name)
38
print(f"Renaming: {root / src} -> {root / dst}")
39
os.rename(root / src, root / dst)
40
dirs.remove(src)
41
dirs.append(dst)
42
for fname in files:
43
f = root / fname
44
text = Path.read_text(root / fname)
45
- if "TODO" in text:
+ if "CHANGEME" in text:
46
print(f"Rewriting: {root / fname}")
47
- Path.write_text(root / fname, text.replace("TODO", new_name))
+ Path.write_text(root / fname, text.replace("CHANGEME", new_name))
0 commit comments