def run_export_releases(args): for line in args.ident_file: ident = uuid2fcid(line.split()[0]) release = args.api.get_release(ident=ident, expand="all") args.json_output.write( json.dumps(entity_to_dict(release), api_client=args.api.api_client) + "\n")
def run_export_changelog(args): end = args.end if end is None: latest = args.api.get_changelog(limit=1)[0] end = latest.index for i in range(args.start, end): entry = args.api.get_changelog_entry(index=i) args.json_output.write( json.dumps(entity_to_dict(entry, api_client=args.api.api_client)) + "\n")