File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 66# ------------------------------------------------------------------------
77# component-status.py
88# ------------------------------------------------------------------------
9- # Generates a JSON document with information about the components
9+ # Generates a data structure with information about the components
1010# and repositories of the SciJava component collection.
1111
1212import json , re , sys
@@ -78,7 +78,8 @@ def process(patterns=[]):
7878 c = maven .MavenComponent (g , a )
7979 records .append (status (c ))
8080
81- print ( json . dumps ( records , sort_keys = True , indent = 4 ))
81+ return records
8282
8383if __name__ == '__main__' :
84- process (sys .argv [1 :])
84+ result = process (sys .argv [1 :])
85+ print (json .dumps (result , sort_keys = True , indent = 4 ))
You can’t perform that action at this time.
0 commit comments