Hi all,

The rationale for this new command is that often you would like to
display information about an installed rock.

The particular need is if the user wants to look at the packaged
documentation or examples.

This is what I envisage the output looking like:

$ luarocks show alien
Directory:  /usr/local/lib/luarocks/rocks/alien/0.5.0-1

Summary: Lua->C FFI

Description:
Alien lets a Lua application call and loa dynamic libraries and C functions
in a portable way, using libffi

Homepage: http://alien.luaforge.net

Which is mostly what you would get from the rockspec, presented neatly.

But there are also flags for returning specific information: for
instance, using the flag --dir gives you just
/usr/local/lib/luarocks/rocks/alien/0.5.0-1, so that

$ ls $(luarocks show --dir alien)

does the expected thing.  Likewise, --home gives you just
http://alien.luaforge.net and can be used with gnome-open, start or
some other browser launcher.

Other bits of information that may be useful include licence and
dependencies; perhaps these can be controlled by --extra.

If there is any interest in this command, I'm happy to knock together
a working prototype.  Also, should a non-local search be enabled by
default?

steve d.

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to