forked from cklug/docker-update
sort keys in json output
This commit is contained in:
parent
17e4d2885e
commit
5cef4df383
@ -138,6 +138,6 @@ if __name__ == "__main__":
|
|||||||
overview = start(args.compose_files, args.ignore)
|
overview = start(args.compose_files, args.ignore)
|
||||||
if args.output:
|
if args.output:
|
||||||
with open(args.output, "w") as out:
|
with open(args.output, "w") as out:
|
||||||
json.dump(overview, out, indent=1)
|
json.dump(overview, out, indent=1, sort_keys=True)
|
||||||
else:
|
else:
|
||||||
print(json.dumps(overview, indent=1))
|
print(json.dumps(overview, indent=1))
|
||||||
Loading…
x
Reference in New Issue
Block a user