You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by le...@apache.org on 2005/07/07 12:58:29 UTC

svn commit: r209585 - /gump/branches/Gump3/gump

Author: leosimons
Date: Thu Jul  7 03:58:25 2005
New Revision: 209585

URL: http://svn.apache.org/viewcvs?rev=209585&view=rev
Log:
Add the ability to run a pydoc server

Modified:
    gump/branches/Gump3/gump

Modified: gump/branches/Gump3/gump
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/gump?rev=209585&r1=209584&r2=209585&view=diff
==============================================================================
--- gump/branches/Gump3/gump (original)
+++ gump/branches/Gump3/gump Thu Jul  7 03:58:25 2005
@@ -54,6 +54,10 @@
 == The 'test' command ==
 {{{"
      usage test $@
+     echo  "}}}
+== The 'pydoc' command ==
+{{{"
+     usage pydoc $@
      echo "}}}"
      local currentdate=`date`
      echo " "
@@ -233,6 +237,16 @@
       This command will fail if the specifed database already exists.
 "
       ;;
+    pydoc)
+      echo "
+      Runs a pydoc server on port 1234.
+
+      Usage:
+        $0 pydoc
+      
+      Visit http://localhost:1234/ to see the documentation it provides
+"
+        ;;
     pycompile)
       echo "
       Compiles all pygump source files.
@@ -687,6 +701,12 @@
   run --attach-wingdb $@
 }
 
+# Run pydoc on the pygump codebase
+function pydoc
+{
+  do_run "from pydoc import cli; cli();" -p 1234 gump $@
+}
+
 # Prematurely shut down pygump
 function kill
 {
@@ -888,6 +908,9 @@
       ;;
     pycompile)
       pycompile $@
+      ;;
+    pydoc)
+      pydoc $@
       ;;
     # this is short-circuited below because we don't really
     # want to load complain about missing environment settings