mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 23:16:21 +00:00
2020-10-14
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/python3
|
||||
import pathlib
|
||||
import subprocess
|
||||
|
||||
for filename in pathlib.Path('.').glob('**/*.md'):
|
||||
# f = open(filename)
|
||||
print('file: %s' % filename)
|
||||
new_filename = str(filename).lower().replace(' ', '-')
|
||||
command = ['git', 'mv', filename, new_filename]
|
||||
print('would run: %s' % command)
|
||||
# subprocess.run(command)
|
||||
Reference in New Issue
Block a user