Migrate from .stow-rename to --dotfiles

This commit is contained in:
Danielle McLean 2023-10-23 15:16:31 +11:00
parent e344a02c65
commit c9c512486d
Signed by: 00dani
GPG key ID: 52C059C3B22A753E
23 changed files with 0 additions and 2 deletions

View file

@ -1,17 +0,0 @@
#!/usr/bin/env python3
try:
from yaml import CSafeLoader as SafeLoader
except ImportError:
from yaml import SafeLoader
import sys, json
files = sys.argv[1:] or ('-',)
stdinUsed = False
for f in files:
if f == '-':
if stdinUsed: continue
stdinUsed = True
with open(f) if f != '-' else sys.stdin as stream:
l = SafeLoader(stream)
while l.check_data(): print(json.dumps(l.get_data()))