Skip to content

Commit d6e4d76

Browse files
committed
Used data.js
1 parent 4329c06 commit d6e4d76

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

remove-json-keys/__main__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os, re
2-
from lib import init
2+
from lib import data, init
33

44
env = init.env()
55
cli = init.cli()
@@ -13,8 +13,7 @@ def print_trunc(msg, end='\n'):
1313
print('')
1414

1515
# Prompt user for keys to remove
16-
def parse_csv_val(val) : return [item.strip() for item in val.split(',') if item.strip()]
17-
remove_keys = parse_csv_val(cli.args.remove_keys or '')
16+
remove_keys = data.parse_csv_val(cli.args.remove_keys or '')
1817
while True:
1918
if remove_keys : print('Key(s) to remove:', remove_keys)
2019
key = input("Enter key to remove (or ENTER if done): ")

remove-json-keys/lib/init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def cli():
55
cli = sns(
66
name='remove-json-keys',
7-
version='2026.2.10.23',
7+
version='2026.2.10.24',
88
author=sns(name='Adam Lui', email='adam@kudoa.com', url='https://github.com/adamlui'),
99
description='Remove key/value pairs from json_dir/**.json',
1010
urls=sns(

0 commit comments

Comments
 (0)