2021-11-18 19:21:53 +00:00
|
|
|
import json
|
|
|
|
import sys
|
|
|
|
|
|
|
|
options = json.load(sys.stdin)
|
|
|
|
for (name, value) in options.items():
|
2022-11-05 21:16:14 +00:00
|
|
|
print('##', name.replace('<', '<').replace('>', '>'))
|
2021-11-18 19:21:53 +00:00
|
|
|
print(value['description'])
|
|
|
|
print()
|
|
|
|
if 'type' in value:
|
|
|
|
print('*_Type_*:')
|
|
|
|
print(value['type'])
|
|
|
|
print()
|
|
|
|
print()
|
|
|
|
if 'default' in value:
|
|
|
|
print('*_Default_*')
|
|
|
|
print('```')
|
|
|
|
print(json.dumps(value['default'], ensure_ascii=False, separators=(',', ':')))
|
|
|
|
print('```')
|
|
|
|
print()
|
|
|
|
print()
|
|
|
|
if 'example' in value:
|
|
|
|
print('*_Example_*')
|
|
|
|
print('```')
|
|
|
|
print(json.dumps(value['example'], ensure_ascii=False, separators=(',', ':')))
|
|
|
|
print('```')
|
|
|
|
print()
|
|
|
|
print()
|