mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 23:16:21 +00:00
dash-separated-format.py update.
This commit is contained in:
@@ -3,9 +3,7 @@ import pathlib
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
for filename in pathlib.Path('.').glob('**/*.md'):
|
for filename in pathlib.Path('.').glob('**/*.md'):
|
||||||
# f = open(filename)
|
|
||||||
print('file: %s' % filename)
|
|
||||||
new_filename = str(filename).lower().replace(' ', '-')
|
new_filename = str(filename).lower().replace(' ', '-')
|
||||||
command = ['git', 'mv', filename, new_filename]
|
command = ['git', 'mv', str(filename), new_filename]
|
||||||
print('would run: %s' % command)
|
print('would run: %s' % command)
|
||||||
# subprocess.run(command)
|
# subprocess.run(command)
|
||||||
|
|||||||
Reference in New Issue
Block a user