aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Burgueño <ignaciob@inconcertcc.com>2014-01-15 18:09:23 -0800
committerIgnacio Burgueño <ignaciob@inconcertcc.com>2014-01-15 18:09:23 -0800
commitc0d695ad303b19602e3342f0bc371b8b1c73d2ae (patch)
tree14a3dead0ef4c97ff3d6cb5690ba623836b00ed7
parent304987887671d67181846b9d321cd91d54840ed8 (diff)
downloadluarocks-c0d695ad303b19602e3342f0bc371b8b1c73d2ae.tar.gz
luarocks-c0d695ad303b19602e3342f0bc371b8b1c73d2ae.tar.bz2
luarocks-c0d695ad303b19602e3342f0bc371b8b1c73d2ae.zip
show --modules will output one module per line
As suggested by @agladysh in #210 So the output of, say, `luarocks show --modules oauth` will be: ~~~~ OAuth.helpers OAuth OAuth.coreLuaNode OAuth.coreLuaSocket ~~~~ instead of ~~~~ OAuth.helpers OAuth OAuth.coreLuaNode OAuth.coreLuaSocket ~~~~
-rw-r--r--src/luarocks/show.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/luarocks/show.lua b/src/luarocks/show.lua
index 2e039dd4..3a765ef3 100644
--- a/src/luarocks/show.lua
+++ b/src/luarocks/show.lua
@@ -1,4 +1,3 @@
1
2--- Module implementing the LuaRocks "show" command. 1--- Module implementing the LuaRocks "show" command.
3-- Shows information about an installed rock. 2-- Shows information about an installed rock.
4module("luarocks.show", package.seeall) 3module("luarocks.show", package.seeall)
@@ -128,7 +127,7 @@ function run(...)
128 if flags["rock-tree"] then util.printout(path.rocks_tree_to_string(repo)) 127 if flags["rock-tree"] then util.printout(path.rocks_tree_to_string(repo))
129 elseif flags["rock-dir"] then util.printout(directory) 128 elseif flags["rock-dir"] then util.printout(directory)
130 elseif flags["home"] then util.printout(descript.homepage) 129 elseif flags["home"] then util.printout(descript.homepage)
131 elseif flags["modules"] then util.printout(keys_as_string(minfo.modules)) 130 elseif flags["modules"] then util.printout(keys_as_string(minfo.modules), "\n")
132 elseif flags["deps"] then util.printout(keys_as_string(minfo.dependencies)) 131 elseif flags["deps"] then util.printout(keys_as_string(minfo.dependencies))
133 elseif flags["rockspec"] then util.printout(rockspec_file) 132 elseif flags["rockspec"] then util.printout(rockspec_file)
134 elseif flags["mversion"] then util.printout(version) 133 elseif flags["mversion"] then util.printout(version)