Commits

Ben Bass  committed 483b684

tiny tweaks

  • Participants
  • Parent commits cb3be0d

Comments (0)

Files changed (3)

 to sys.argv) minus the ``--xml``, and the full path to the 'original' file
 which would have been run if the ``--xml`` option had not been specified.
 
-This is similar to the way ``busybox`` works to implement a whole range of UNIX commands from a single binary, by using argv[0] to determine the required
+This is similar to the way ``busybox`` works to implement a whole range of
+UNIX commands from a single binary, by using argv[0] to determine the required
 action.  This allows the relevant logic to be factored out into a single place.
 
 ::
 
 Plans:
 
-1. Add a few more commands (currently only supports ls and ps)
-2. Put a bunch of actually helpful XML output things into the xmlcmd package to
-simplify creation of additional command helpers
-3. A more useful ``xpath`` command than the perl program of that name on my
-OS X and Ubuntu installs
+#. Add a few more commands (currently only supports ls and ps)
+#. Put a bunch of actually helpful XML output things into the xmlcmd
+   package to simplify creation of additional command helpers
+#. A more useful ``xpath`` command than the perl program of that name
+   on my OS X and Ubuntu installs
 
 Ben Bass 2011
 
 setup(
     name="xmlcmd",
-    version="0.1",
+    version="0.1.2",
     description="half-baked support for adding --xml support to POSIX commands",
     long_description=open('README.txt').read(),
     author="Ben Bass",
         "License :: Public Domain",
         "Operating System :: POSIX",
         "Programming Language :: Python",
+        "Programming Language :: Unix Shell",
     ]
 )

File xmlcmd/_ps.py

-
 """
 # view processes which are using more than 2.5% CPU
-ps --xml -aux | xpath '//process/command/text()[../../cpu > 2.5]'
+ps --xml aux | xpath '//process/command/text()[../../cpu > 2.5]'
 """
 
 import sys