From: Eric S. Raymond Date: Wed, 20 Oct 2010 11:43:33 +0000 (-0400) Subject: Query mode is fully supported. X-Git-Tag: 2.1~11 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=efe5a0987bd7198b2f95c88bff5f27b20f75611c;p=freecode-submit.git Query mode is fully supported. --- diff --git a/freshmeat-submit b/freshmeat-submit index fbe4307..5a35d94 100755 --- a/freshmeat-submit +++ b/freshmeat-submit @@ -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: diff --git a/freshmeat-submit.xml b/freshmeat-submit.xml index 3a7db4b..5597e35 100644 --- a/freshmeat-submit.xml +++ b/freshmeat-submit.xml @@ -18,6 +18,7 @@ freshmeat-submit + -q -V -n -N @@ -46,6 +47,14 @@ API. +-q, --query + +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. + + + -d, --delete Delete the specified release rather than submitting it. With