On Fri, Sep 3, 2010 at 4:08 AM, steve donovan <[email protected]> wrote: > On Thu, Sep 2, 2010 at 3:00 PM, steve donovan <[email protected]> > wrote: >> I like your idea of 'list --long' - let's see how 'show' goes! > > Here's a first iteration: installation is simple [1]. Tested on Debian > Squeeze and Windows XP with LfW.
I committed a revised version, adding an error check and some layout improvements, to make it look a bit like index.html from the repository. The only 'major' change was to present the repository path instead of the rock directory. I thought it would be confusing to present that path there since it's not where the modules are. Some examples: ---------------------------------------------------------------------- ]bin/luarocks show alien Alien 0.5.0-1 - Lua->C FFI Alien lets a Lua application call load dynamic libraries and call C functions in a portable way, using libffi. License: MIT/X11 Homepage: http://alien.luaforge.net Installed in: /Users/hisham/.luarocks/ Modules: alien.core alien.struct alien ---------------------------------------------------------------------- ]bin/luarocks show lua-coat lua-Coat 0.8.1-1 - Yet Another Lua Object-Oriented Model lua-Coat is a Lua 5.1 port of Coat (http://www.sukria.net/perl/coat/), a Perl5 module which mimics Moose (http://www.iinteractive.com/moose/), an object system for Perl5 which borrows features from Perl6, CLOS (LISP), Smalltalk and many other languages. License: MIT/X11 Homepage: http://lua-coat.luaforge.net/ Installed in: /Users/hisham/.luarocks/ Modules: Coat Coat.Types Coat.Role Coat.Meta.Class Coat.file Coat.UML Coat.Meta.Role Depends on: lua-testmore ---------------------------------------------------------------------- ]bin/luarocks show --help luarocks show <argument> show - Shows information about an installed rock. <argument> is an existing package name. Without any flags, show all module information. With these flags, return only the desired information: --home home page of project --modules all modules provided by this package as used by require() --deps packages this package depends on --rockspec the full path of the rockspec file --mversion the package version --tree local tree where rock is installed --rock-dir data directory of the installed rock ---------------------------------------------------------------------- ]bin/luarocks show lua-coat --tree /Users/hisham/.luarocks/ ---------------------------------------------------------------------- ]bin/luarocks show lua-coat --rock-dir /Users/hisham/.luarocks/lib/luarocks/rocks/lua-coat/0.8.1-1 -- Hisham _______________________________________________ Luarocks-developers mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers
