You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When asking for the list of bought bundles, we always get the flat list even if --json option is passed.
Since the normal dump would be pretty big, I tried to produce a simpler output (maybe not the cleanest possible but it might proves useful to some besides me).
Here is the added code from line 779 (GitHub does not accept the patch file and I don't want to bother with a fork & pull-request):
elif args.list_bundles:
bundles = hb.bundles.items()
if args.json:
print ('[')
for bundle in sorted(bundles):
print (' [')
print (' "%s",' % bundle[1]['machine_name'])
print (' {')
print (' "machine_name": "%s"' % bundle[1]['machine_name'])
print (' "human_name": "%s"' % bundle[1]['human_name']).encode('utf-8')
print (' }')
print (' ],')
print (']')
return
for bundle in sorted(bundles):
Hope it will help.
The text was updated successfully, but these errors were encountered:
Seems reasonable enough.
In fact, I choose the slightly more complex format only to be a subset of the full version but when we call with these options, we obviously search for a simple answer so it makes perfect sense.
When asking for the list of bought bundles, we always get the flat list even if --json option is passed.
Since the normal dump would be pretty big, I tried to produce a simpler output (maybe not the cleanest possible but it might proves useful to some besides me).
Here is the added code from line 779 (GitHub does not accept the patch file and I don't want to bother with a fork & pull-request):
Hope it will help.
The text was updated successfully, but these errors were encountered: