]> thyrsus.com Git - freecode-submit.git/commitdiff
Query mode is fully supported.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 20 Oct 2010 11:43:33 +0000 (07:43 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 20 Oct 2010 11:43:33 +0000 (07:43 -0400)
freshmeat-submit
freshmeat-submit.xml

index fbe4307a98be7acaf1b452b3e2d1604ad4e796a0..5a35d945379e1b06d24011e0014bcfc976491588 100755 (executable)
@@ -311,8 +311,11 @@ if __name__ == "__main__":
         session = FreshmeatSession(verbose=int(verbose), emit_enable=not dryrun)
         session.on_project(update.name)
         if options.query:
-            print "Querying %s: not yet supported." % options.query
-            print session.project_data
+            print "Project: %s" % session.project_data["name"]
+            print "Summary: %s" % session.project_data["oneliner"]
+            print "Description: %s" % session.project_data["description"].replace("\n", "\n    ").rstrip()
+            print "License-List: %s" % ",".join(session.project_data["license_list"])
+            print "Project-Tag-List: %s" % ",".join(session.project_data["tag_list"])
         else:
             # OK, now actually add or delete the release.
             if update.per_project:
index 3a7db4b838fd40f70d8e1bd34c4ef77d33920fb6..5597e358568e435d2ef05b6f8da849c2d21cbff9 100644 (file)
@@ -18,6 +18,7 @@
 
 <cmdsynopsis>
   <command>freshmeat-submit</command>
+    <arg>-q</arg>
     <arg>-V</arg>
     <arg>-n</arg>
     <arg>-N</arg>
@@ -46,6 +47,14 @@ API.</para>
 
 <variablelist>
 <varlistentry>
+<term>-q, --query</term>
+<listitem>
+<para>Query the specified project. Delivers to standard output a job
+card describing the project metadata that can be edited and fed back
+to this tool.</para>
+</listitem>
+</varlistentry>
+<varlistentry>
 <term>-d, --delete</term>
 <listitem>
 <para>Delete the specified release rather than submitting it.  With