mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
chore: add support for astro files (see #469)
This commit is contained in:
13
scripts/convert_colors.py
Normal file
13
scripts/convert_colors.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# convert colors from the format provided by https://raw.githubusercontent.com/ozh/github-colors/master/colors.json to what wakapi wants
|
||||
|
||||
import sys
|
||||
import json
|
||||
|
||||
with open(sys.argv[1], 'r') as f:
|
||||
colors = json.load(f)
|
||||
|
||||
result = {}
|
||||
for k, v in colors.items():
|
||||
result[k] = v['color']
|
||||
|
||||
print(json.dumps(result, indent=4))
|
||||
Reference in New Issue
Block a user