r1013 - in /trunk/packages/vim-addon-manager: debian/changelog src/vim-addons src/vim/addon-manager.rb

zack at users.alioth.debian.org zack at users.alioth.debian.org
Sun Aug 19 09:00:48 UTC 2007


Author: zack
Date: Sun Aug 19 09:00:48 2007
New Revision: 1013

URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=1013
Log:
* vim-addons
  - add 'show' command which show in a 822-like format a more detailed
    report of each addons and its status (Closes: #438154)

Modified:
    trunk/packages/vim-addon-manager/debian/changelog
    trunk/packages/vim-addon-manager/src/vim-addons
    trunk/packages/vim-addon-manager/src/vim/addon-manager.rb

Modified: trunk/packages/vim-addon-manager/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-addon-manager/debian/changelog?rev=1013&op=diff
==============================================================================
--- trunk/packages/vim-addon-manager/debian/changelog (original)
+++ trunk/packages/vim-addon-manager/debian/changelog Sun Aug 19 09:00:48 2007
@@ -2,8 +2,11 @@
 
   * debian/control
     - better long description
+  * vim-addons
+    - add 'show' command which show in a 822-like format a more detailed
+      report of each addons and its status (Closes: #438154)
 
- -- Stefano Zacchiroli <zack at debian.org>  Fri, 22 Jun 2007 09:34:58 +0100
+ -- Stefano Zacchiroli <zack at debian.org>  Sun, 19 Aug 2007 10:56:49 +0200
 
 vim-addon-manager (0.2) unstable; urgency=low
 

Modified: trunk/packages/vim-addon-manager/src/vim-addons
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-addon-manager/src/vim-addons?rev=1013&op=diff
==============================================================================
--- trunk/packages/vim-addon-manager/src/vim-addons (original)
+++ trunk/packages/vim-addon-manager/src/vim-addons Sun Aug 19 09:00:48 2007
@@ -21,7 +21,7 @@
 
 == SYNOPSIS
 
-vim-addons [OPTION ...] { list | status | install | remove | disable | amend | files } [ADDON ...]
+vim-addons [OPTION ...] COMMAND [ADDON ...]
 
 == DESCRIPTION
 
@@ -51,8 +51,12 @@
   only some of the files composing the addon are installed under ~/.vim. The
   addon is probably not working for the current user
 
-The following commands can be given to vim-addons to inspect or alter the
-status of the addons:
+=== COMMANDS
+
+A number of commands can be given to vim-addons to inspect or alter the status
+of the addons: list, status, install, remove, disable, amend, files, show.
+
+A description of the semantics of each command is reported below.
 
 :list
   list, one per line, the names of the addons available in the system (i.e. of
@@ -86,6 +90,9 @@
   listed relative to components of the Vim runtimepath (see 'runtimepath' in
   the Vim help). Requires at least one addon argument
 
+:show
+  displays detailed information about the specified addons
+
 == OPTIONS
 
 All commands accept the following options:
@@ -140,7 +147,9 @@
 def die_usage
   print <<EOS
 Usage:
-  vim-addons [OPTION ...] { list | status | install | remove | disable | amend | files } [ADDON ...]
+  vim-addons [OPTION ...] COMMAND [ADDON ...]
+Commands:
+  list, status, install, remove, disable, amend, files, show
 Options:
   -h, --help          show this usage message and exit
   -r, --registry-dir  set the registry directory
@@ -166,7 +175,7 @@
     :target_dir   => File.join(ENV['HOME'], '.vim'),
     :system_wide  => false
   }
-  cmds = %w{install remove disable amend list status files}
+  cmds = %w{install remove disable amend list status files show}
   req_arg_cmds = # commands requiring >= 1 arg
     %w{install remove disable amend files}
   cmdline =

Modified: trunk/packages/vim-addon-manager/src/vim/addon-manager.rb
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-addon-manager/src/vim/addon-manager.rb?rev=1013&op=diff
==============================================================================
--- trunk/packages/vim-addon-manager/src/vim/addon-manager.rb (original)
+++ trunk/packages/vim-addon-manager/src/vim/addon-manager.rb Sun Aug 19 09:00:48 2007
@@ -113,6 +113,15 @@
       end
     end
 
+    def show(addons)
+      addons.each do |addon|
+        puts "Addon: #{addon}"
+        puts "Status: #{addon.status(@target_dir)}"
+        puts "Description: #{addon.description}"
+        puts ""
+      end
+    end
+
     private
     
     def map_override_lines




More information about the pkg-vim-maintainers mailing list