Anonymous avatar Anonymous committed 3326252

enh: add who-owns, update readme, add release notes.

Comments (0)

Files changed (2)

 from optparse import OptionParser
 
 # initialization
-__version__ = '1.01'
+__version__ = '1.03'
 use_sudo = ('apt-get', 'apt-get remove', 'aptitude', 'apt-key', 'dpkg -i',
             'add-apt-repository ', 'apt-get install')
 
     # more
     'fingerprint': 'apt-key',
     'list': 'dpkg-query -l',
-    'status': 'dpkg-query -l',       # alias
+    'status': 'dpkg-query -l',      # alias
     'listfiles': 'dpkg-query -L',
     'searchfiles': 'dpkg-query -S',
+    'who-owns': 'dpkg-query -S',    # alias
     'instdeb': 'dpkg -i',
     'addrepo': 'add-apt-repository ',  # trailing space hack to override cmd
 }
 ``aptitude, dpkg, dpkg-query, add-apt-repository``, and ``apt-key``.
 It has a much narrower focus than "kitchen-sink" tools such as ``wajig``.
 
-Hopefully this micro-project will make your life a tiny bit easier.
-
+| Hopefully this micro-project will make your life a tiny bit easier.
+|
 
 Installation
 --------------
 
     sudo pip install https://bitbucket.org/mixmastamyk/apt/get/default.tar.gz
 
+|
 
 Usage
 --------------
     apt remove foo
     apt instdeb foo.deb
 
+|
 
 Shortened commands
 ~~~~~~~~~~~~~~~~~~~~
 
     sudo apt-get clean
 
+|
+
 Aliases
 ~~~~~~~~~
 
 
     apt in foo                  # install
     apt rm bar                  # remove
-    apt se baz                  # search
+    apt se baz                  # apt-cache search
+    apt who-owns                # dpkg-query --searchfiles
 
-|
 
 Problem?
 ``-d`` can help by outputting debugging information such as the full
 command-line::
 
-    $ apt searchfiles /bin/less -d
+    $ apt who-owns /bin/less -d
     Running: dpkg-query -S /bin/less
     less: /bin/less
 
 ~~~~~~~~~
 
 Licensed under the `GPL, version 3+ <http://www.gnu.org/licenses/gpl.html>`_.
+
+|
+
+Release Notes
+~~~~~~~~~~~~~~~
+
+- 1.03 - Update readme with release notes and document new commands.
+- 1.02 - Add ``who-owns`` alias for ``searchfiles``.
+- 1.01 - Add ``in`` alias for ``install``.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.